ebanutsya
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user