Add nullable false to order

This commit is contained in:
Feliciaan De Palmenaer 2015-04-03 18:45:33 +02:00
parent 037b7ee934
commit da73af3b19

View file

@ -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)