You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How PostgreSQL sequence can be mapped with a column using SqlModel? #137
I have a model named Orders, where I need to implement PostgreSQL sequence which will generate an auto-increment alphanumeric order number. I tried searching but no luck on how to implement in SqlModel. I have found it for SqlAlchemy but don't know how to do in SqlModel.
Activity
littlebtc commentedon Feb 15, 2022
(Old wrong answer deleted)
You can try
sa_column_argsandsa_column_kwargs, which will be appended to the generated SQLAlchemy column.