How to have a AUTO_INCREMENT field different from primary_key #1012
Replies: 1 comment
-
For starters, probably don't make your field a string.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
Create a table
ExampleTable
with id as a primary key and other field calledanother_auto_increment
as not a primary key.Operating System
Linux
Operating System Details
No response
SQLModel Version
0.0.18
Python Version
3.12
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions