![]() In an m-n-relation, it also determines the name of the underlying relation table. to disambiguate a relation)ĭefines the name of the relationship. The name of the fields argument on the attribute can be omitted: In preview in versions 3.14.0 and later, and in general availability in versions 4.0.0 and later. In general availability in versions 4.0.0 and later.Īllows you to define the index operators for certain index types. In preview with the Hash index access method in versions 3.6.0 and later, and with the Gist, Gin, SpGist and Brin methods added in 3.14.0. ![]() In preview in versions 3.5.0 and later, and in general availability in versions 4.0.0 and later.Īllows you to specify an index access method. In preview in versions 3.5.0 and later, and in general availability in versions 4.0.0 and later.ĭefines whether the index is clustered or non-clustered. In preview in versions 3.5.0 and later, and in general availability in versions 4.0.0 and later.Īllows you to specify in what order the entries of the index or constraint are stored in the database. Prisma uses the following naming convention: tablename.field1_field2_field3_unique)Īllows you to specify a maximum length for the subpart of the value to be indexed. The name of the index in the underlying database (Prisma generates an index name that respects identifier length limits if you do not specify a name. The name that Prisma Client will expose for the argument covering all fields, e.g. The underlying ID field name is always _id, and must be mapped with be defined on any scalar field ( String, Int, enum) unless you want to use ObjectId in your databaseĪnnotate your field with list of field names - for example, Remarks GeneralĬan be annotated with a value that uses functions to auto-generate an ID:Ĭan be defined on any scalar field ( String, Int, enum)Ĭorresponding database type: Any valid BSON type, except arrays Note: The leading underscore in a signature means the argument name can be omitted. Arguments in attributes are always named, but in most cases the argument name can be omitted.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |