feat: factory article for product

This commit is contained in:
2025-01-19 19:44:25 +04:00
parent defe31b55e
commit 2c4037c1b5
3 changed files with 4 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ class Product(BaseModel):
id = Column(Integer, autoincrement=True, primary_key=True, index=True)
name = Column(String, nullable=False, index=True)
article = Column(String, nullable=False, default='', server_default='', index=True)
factory_article = Column(String, nullable=False, default='', server_default='', index=True)
client_id = Column(Integer, ForeignKey('clients.id'), nullable=False, comment='ID сделки')
client = relationship('Client', back_populates='products')