add moves.is_pass

This commit is contained in:
Sorrel Bri 2019-10-02 16:48:10 -07:00
parent 9ce70cff4a
commit 2fe0e4d78b

View file

@ -14,7 +14,8 @@ class Move(db.Model):
x_point = db.Column(db.Integer) x_point = db.Column(db.Integer)
y_point = db.Column(db.Integer) y_point = db.Column(db.Integer)
move_number = db.Column(db.Integer) move_number = db.Column(db.Integer)
is_main = db.Column(db.Boolean(), nullable=False, default=True) is_pass = db.Column(db.Boolean, nullable=False, default=False)
is_main = db.Column(db.Boolean, nullable=False, default=True)
# foreign keys # foreign keys
game = db.Column(db.Integer, db.ForeignKey("games.id"), nullable=False) game = db.Column(db.Integer, db.ForeignKey("games.id"), nullable=False)