lookigulf.blogg.se

Sqlite uuid generator
Sqlite uuid generator




sqlite uuid generator

Model names must adhere to the following regular expression: *.You must define at least one of the following attributes per model: Every record of a model must be uniquely identifiable.In this example, the target database is available with the following credentials: datasource db is convention - however, you can give your data source any name - for example, datasource mysql or datasource data.Įxamples Specify a PostgreSQL data source.You can only have one datasource block in a schema.Available in preview for PostgreSQL only in Prisma versions 4.5.0 and later. List of strings (PostgreSQL extension names)Īllows you to represent PostgreSQL extensions in your schema. The field is named relationMode in versions 4.5.0 and later, and was previously named referentialIntegrity. Sets whether referential integrity is enforced by foreign keys in the database or emulated in the Prisma Client. If you use a connection pooler URL in the url argument (for example, if you use the Data Proxy or pgBouncer), Prisma CLI commands that require a direct connection to the database (such as migrate dev or db pull) use the URL in the directUrl argument. Allows you to use a cloud-hosted database as the shadow database.Ĭonnection URL for direct connection to the database. Most connectors use the syntax provided by the database.Ĭonnection URL to the shadow database used by Prisma Migrate. String ( postgresql, mysql, sqlite, sqlserver, mongodb, cockroachdb)ĭescribes which data source connectors to use.Ĭonnection URL including authentication info.






Sqlite uuid generator