crappy
This commit is contained in:
11
models/client.py
Normal file
11
models/client.py
Normal 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='Дата создания')
|
||||
Reference in New Issue
Block a user