Replies: 1 comment 1 reply
|
If you want to override the type of ID, you need to inherit from class User(SQLAlchemyBaseUserTable[int], Base):
id: Mapped[int] = mapped_column(Integer, primary_key=True) |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
when i use ID instead of uuid
it warring not exited mapped_column
class User(SQLAlchemyBaseUserTableUUID, Base):
id: Mapped[int] = mapped_column(Integer, primary_key=True)
when use uuid then use alembic to migrate so error because not auto import function to migration
but when i use
class User(SQLAlchemyBaseUserTableUUID, Base):
id : Column(Integer, primary_key=True)
after logged then get user/me i got status 401 , i think this error because it not define id
All reactions