This commit is contained in:
2024-03-04 04:15:01 +03:00
parent d870f1cffe
commit bf24c791fc
12 changed files with 116 additions and 13 deletions

11
models/client.py Normal file
View File

@@ -0,0 +1,11 @@
from sqlalchemy import Column, Integer, String, DateTime
from models import BaseModel
class Client(BaseModel):
__tablename__ = 'clients'
id = Column(Integer, autoincrement=True, primary_key=True, index=True)
name = Column(String, nullable=False, unique=True, comment='Название клиента')
address = Column(String)
created_at = Column(DateTime, nullable=False, comment='Дата создания')