© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago•
16 replies
christrading

Drizzle Schema Defaults

This is one of my table schemas in Prisma
model User {
  id          Int          @id @default(autoincrement())
  email       String       @unique
  username    String       @unique
  credentials Credential[]

  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
}
model User {
  id          Int          @id @default(autoincrement())
  email       String       @unique
  username    String       @unique
  credentials Credential[]

  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
}


Are identifiers such as
@id
@id
and default with values such as
autoincrement()
autoincrement()
and
now()
now()
available in Drizzle? I am using better-sqlite-3 as the driver
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Overwriting Schema Defaults
Drizzle TeamDTDrizzle Team / help
2y ago
Drizzle folder schema
Drizzle TeamDTDrizzle Team / help
16mo ago
Zod schema validation from Drizzle schema
Drizzle TeamDTDrizzle Team / help
3y ago
Drizzle Schema and TS
Drizzle TeamDTDrizzle Team / help
11mo ago