feat: address now is telegram

This commit is contained in:
2024-04-28 19:59:09 +03:00
parent 29d04c848d
commit 4431629cba
5 changed files with 15 additions and 15 deletions

View File

@@ -23,7 +23,7 @@ class ClientDetails(BaseModel):
client_id = Column(Integer, ForeignKey('clients.id'), unique=True, nullable=False, comment='ID клиента')
client = relationship('Client', back_populates='details', cascade='all, delete', uselist=False)
address = Column(String)
telegram = Column(String)
phone_number = Column(String)
inn = Column(String)
email = Column(String)

View File

@@ -17,7 +17,6 @@ class Product(BaseModel):
client_id = Column(Integer, ForeignKey('clients.id'), nullable=False, comment='ID сделки')
client = relationship('Client', back_populates='products')
barcodes = relationship('ProductBarcode', back_populates='product', cascade="all, delete-orphan")
my_column = Column(Integer, sequence)
class ProductBarcode(BaseModel):