create basic GameRoom model
This commit is contained in:
parent
ac02af8cbb
commit
6a91b1c08a
1 changed files with 16 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
||||||
|
from ..app import db, ma
|
||||||
|
import enum
|
||||||
|
|
||||||
|
class Languages(enum.Enum):
|
||||||
|
EN: "English"
|
||||||
|
|
||||||
|
class GameRoom(db.Model):
|
||||||
|
__table_args__ = {'extend_existing': True}
|
||||||
|
|
||||||
|
name = db.Column(db.String(40))
|
||||||
|
description = db.Column(db.String(200))
|
||||||
|
private = db.Column(db.Boolean())
|
||||||
|
language = db.Column(db.Enum(Languages))
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
Loading…
Reference in a new issue