how to define field w/ postgres IDENTITY?
I am trying Drizzle out for the first time. I thought to flex the quick start with realistic production user table schema.
I can't find anywhere (including searching GitHub for examples) how to define the following field??
2 Replies
I'm new to drizzle as well, had the same issue.
support for identity column is planned but still not implemented
meanwhile I found a workaround on their GitHub issue which uses a custom type
https://github.com/drizzle-team/drizzle-orm/issues/295
Am I mistaken or this custom type does not generate the migration code ArnaudD claims? On my end, generated migrations using this type quote the whole type as a string