© 2026 Hedgehog Software, LLC

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

How to set a default timestamp_ms for sqlite

How do I make a default timestamp_ms?

createdAt: integer("createdAt", {
      mode: "timestamp_ms",
    })
      .notNull().default( // what goes in here )
createdAt: integer("createdAt", {
      mode: "timestamp_ms",
    })
      .notNull().default( // what goes in here )
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

SQLite: timestamp vs timestamp_ms modes
Drizzle TeamDTDrizzle Team / help
3y ago
How to set timestamp for `created_at` in Drizzle on SQLite?
Drizzle TeamDTDrizzle Team / help
2y ago
How to set PRAMGA for Sqlite
Drizzle TeamDTDrizzle Team / help
16mo ago
SQLite Timestamp does not allow a default NULL value
Drizzle TeamDTDrizzle Team / help
2y ago