ebanutsya

This commit is contained in:
2023-10-29 06:54:55 +03:00
parent 4d98d631f7
commit b7a4df1e30
4 changed files with 58 additions and 3 deletions

View File

@@ -18,13 +18,13 @@ class Assembly(db.Model):
id = db.Column(db.Integer, primary_key=True, comment='ID сборки')
created_at = db.Column(db.DateTime, nullable=False, comment='Дата и время начала сборки')
ended_at = db.Column(db.DateTime, nullable=False, comment='Дата и время конца сборки')
ended_at = db.Column(db.DateTime, nullable=True, comment='Дата и время конца сборки')
user_id = db.Column(db.Integer, db.ForeignKey('users.id'), nullable=False)
user = db.relationship('User', backref='assemblies')
order_id = db.Column(db.Integer, nullable=False, comment='ID заказа в базе данных')
active = db.Column(db.Boolean, nullable=False, comment='Активная ли сборка')
class Barcode(db.Model):