browser-go-api/models/Message.py
2019-10-01 20:26:40 -07:00

19 lines
No EOL
472 B
Python

from ..app import db, ma
import enum
class Players(enum.Enum):
BLACK = "The player taking black stones"
WHITE = "The player taking white stones"
class Message(db.Model):
__table_args__ = {'extend_existing': True}
id = db.Column(db.Integer, primary_key=True)
date = db.Column(db.DateTime())
content = db.Column(db.String(200))
# foreing key
game = db.Column(db.Integer, db.ForeignKey("move.id"))
def __init__(self):
pass