feat: article now is not required
This commit is contained in:
@@ -8,7 +8,7 @@ class Product(BaseModel):
|
||||
__tablename__ = 'products'
|
||||
id = Column(Integer, autoincrement=True, primary_key=True, index=True)
|
||||
name = Column(String, nullable=False, index=True)
|
||||
article = Column(String, nullable=False, index=True)
|
||||
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')
|
||||
|
||||
Reference in New Issue
Block a user