With Prisma, you can build GraphQL servers that connect to a database.
Defines a default value for a field .
Remarks
Corresponding database type: DEFAULT
Default values can be a static value (4, "hello") or one of the following functions:
ex:
schema.prisma
โโโโ model User {
โโโโ id Int @id @default(autoincrement())
โโโโ email String @unique
โโโโ password String
โโโโ name String?
โโโโ posts Post[]
โโโโ profile Profile?
โโโโ}
โโโโmodel User {
โโโโ id Int @id @default(dbgenerated("gen_random_uuid()"))
โโโโ}