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