[rewrite] WIP login and register
This commit is contained in:
1 parent
f5547be799
commit
cd8fdb9c21
9 files changed
+38
-62
No files matched your search
@@ -1,3 +1,4 @@
|
||||
from uuid import UUID
|
||||
from enum import Enum as PyEnum
|
||||
from typing import Optional, List
|
||||
from datetime import datetime, time
|
||||
@@ -38,6 +39,7 @@ class Shop(SQLModel, table=True):
|
||||
__tablename__ = 'shop'
|
||||
|
||||
id: Optional[int] = Field(default=None, primary_key=True)
|
||||
uuid: UUID = Field(nullable=False, unique=True)
|
||||
owner_id: int = Field(foreign_key='user.id', nullable=False)
|
||||
name: str = Field(max_length=100, nullable=False, unique=True)
|
||||
description: str = Field(max_length=500, nullable=False)
|
||||
|
||||
Reference in new issue
Block a user