diff --git a/database/models.py b/database/models.py index 4b77fc3..d6495fc 100644 --- a/database/models.py +++ b/database/models.py @@ -23,7 +23,7 @@ class Assembly(db.Model): 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 заказа в базе данных') + order_id = db.Column(db.Integer, nullable=False, comment='ID заказа в базе данных', index=True) is_active = db.Column(db.Boolean, nullable=False, comment='Активная ли сборка') state = db.Column(db.Integer, nullable=False, comment='Состояние сборки')