mirror of
https://github.com/solero/houdini.git
synced 2025-10-22 23:38:14 +00:00
Game save state SQL
This commit is contained in:
12
houdini/data/game.py
Normal file
12
houdini/data/game.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from houdini.data import db
|
||||
|
||||
|
||||
class PenguinGameData(db.Model):
|
||||
__tablename__ = 'penguin_game_data'
|
||||
|
||||
penguin_id = db.Column(db.ForeignKey('penguin.id', ondelete='RESTRICT', onupdate='CASCADE'), primary_key=True,
|
||||
nullable=False)
|
||||
room_id = db.Column(db.ForeignKey('room.id', ondelete='RESTRICT', onupdate='CASCADE'), primary_key=True,
|
||||
nullable=False, index=True)
|
||||
index = db.Column(db.Integer, primary_key=True, index=True)
|
||||
data = db.Column(db.Text, nullable=False, server_default=db.text("''"))
|
||||
Reference in New Issue
Block a user