Add nullable false to order
This commit is contained in:
parent
037b7ee934
commit
da73af3b19
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ class Product(db.Model):
|
||||||
|
|
||||||
class Order(db.Model):
|
class Order(db.Model):
|
||||||
id = db.Column(db.Integer, primary_key=True)
|
id = db.Column(db.Integer, primary_key=True)
|
||||||
courrier_id = db.Column(db.Integer, db.ForeignKey('user.id'))
|
courrier_id = db.Column(db.Integer, db.ForeignKey('user.id'), nullable=True)
|
||||||
location_id = db.Column(db.Integer, db.ForeignKey('location.id'))
|
location_id = db.Column(db.Integer, db.ForeignKey('location.id'))
|
||||||
starttime = db.Column(db.DateTime)
|
starttime = db.Column(db.DateTime)
|
||||||
stoptime = db.Column(db.DateTime)
|
stoptime = db.Column(db.DateTime)
|
||||||
|
|
Loading…
Reference in a new issue