This commit is contained in:
2024-03-28 08:22:14 +03:00
parent 6ba041a839
commit a72eb31e07
19 changed files with 243 additions and 28 deletions

View File

@@ -10,6 +10,8 @@ class Client(BaseModel):
name = Column(String, nullable=False, unique=True, comment='Название клиента')
created_at = Column(DateTime, nullable=False, comment='Дата создания')
products = relationship('Product', back_populates='client')
class ClientDetails(BaseModel):
__tablename__ = 'client_details'