Can I control at what interval an `@id` is autoinc...
# orm-help
z
Can I control at what interval an
@id
is autoincremented, per model? I'd like to increment them at different intervals in Postgres for different types (example;
Post
id:s incremented like
1, 1001, 2001, 3001, 4001, 5001
,
Author
incremented at
2, 2002, 3002, 4002
, so starting at a different 1st number and then incrementing by 1000)
Assuming I'd need to set up my own sequence here I guess
r
Hey @zth 👋 You would need to setup your own sequence as autoincrement at the DB level always does it by 1.