

Refer to the attribute function reference documentation for information about connector support for functions. These are available in versions 4.0.0 and later, when using databases where Prisma supports them (PostgreSQL, CockroachDB and MongoDB) Lists of static values, such as ( Int) or ( String).Static values that correspond to the field type, such as 5 ( Int), Hello ( String), or false ( Boolean).For example, cuid() and uuid() are provided by Prisma's query engine for all connectors. Represent DEFAULT values in the underlying database (relational databases only) or.The following example includes a scalar list and a list of related attributes either: Note: You cannot combine type modifiers - optional lists are not supported.

The type of a field can be modified by appending either of two modifiers: Control the exact native type that Prisma Migrate creates in the database - for example, a String can be or See an enriched schema when you introspect.See complete list of native database type attributes per scalar type and provider. For example, if you are using the PostgreSQL provider, String fields where the underlying native type is text will not have a type attribute. Prefixed by where db is the name of the datasource block in your schemaįurthermore, during Introspection type attributes are only added to the schema if the underlying native type is not the default type.

