Fields
When Platformatic DB inspects a database's schema, it creates an object for each table that contains a mapping of their fields.
These objects contain the following properties:
singularName: singular entity name, based on table name. Uses inflected under the hood.pluralName: plural entity name (i.e'pages')primaryKey: the field which is identified as primary key.table: original table namefields: an object containing all fields details. Object key is the field name.camelCasedFields: an object containing all fields details in camelcase. If you have a column nameduser_idyou can access it using bothuserIdoruser_id
Fields detail
sqlType: The original field type. It may vary depending on the underlying DB EngineisNullable: Whether the field can benullor notprimaryKey: Whether the field is the primary key or notcamelcase: The camel cased value of the field