Move User to own model and include CRUD
This commit is contained in:
23
backend/app/models/base.py
Normal file
23
backend/app/models/base.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from sqlmodel import SQLModel
|
||||
|
||||
from uuid import UUID as RowId
|
||||
|
||||
|
||||
# region SQLModel base class ###################################################
|
||||
|
||||
|
||||
class BaseSQLModel(SQLModel):
|
||||
pass
|
||||
|
||||
# endregion
|
||||
|
||||
# region Generic message #######################################################
|
||||
|
||||
|
||||
class Message(SQLModel):
|
||||
message: str
|
||||
|
||||
|
||||
# #############################################################################
|
||||
|
||||
# endregion
|
||||
Reference in New Issue
Block a user