mirror of
https://github.com/solero/houdini.git
synced 2024-11-26 07:27:24 +00:00
Remove unneeded table
Using redis for rainbow puffle quest cookies
This commit is contained in:
parent
5daecfd0c2
commit
2f6c53c872
19
houdini.sql
19
houdini.sql
@ -1155,25 +1155,6 @@ COMMENT ON COLUMN penguin_puffle_item.penguin_id IS 'Owner penguin ID';
|
|||||||
COMMENT ON COLUMN penguin_puffle_item.item_id IS 'Puffle care item ID';
|
COMMENT ON COLUMN penguin_puffle_item.item_id IS 'Puffle care item ID';
|
||||||
COMMENT ON COLUMN penguin_puffle_item.quantity IS 'Quantity owned';
|
COMMENT ON COLUMN penguin_puffle_item.quantity IS 'Quantity owned';
|
||||||
|
|
||||||
DROP TABLE IF EXISTS puffle_quest;
|
|
||||||
CREATE TABLE puffle_quest (
|
|
||||||
penguin_id INT NOT NULL,
|
|
||||||
task_id SMALLINT NOT NULL,
|
|
||||||
completion_date TIMESTAMP DEFAULT NULL,
|
|
||||||
item_collected BOOLEAN NOT NULL DEFAULT FALSE,
|
|
||||||
coins_collected BOOLEAN NOT NULL DEFAULT FALSE,
|
|
||||||
PRIMARY KEY (penguin_id, task_id),
|
|
||||||
CONSTRAINT puffle_quest_ibfk_1 FOREIGN KEY (penguin_id) REFERENCES penguin (id) ON DELETE RESTRICT ON UPDATE CASCADE
|
|
||||||
);
|
|
||||||
|
|
||||||
COMMENT ON TABLE puffle_quest IS 'Puffle quest progress';
|
|
||||||
|
|
||||||
COMMENT ON COLUMN puffle_quest.penguin_id IS 'Quest penguin ID';
|
|
||||||
COMMENT ON COLUMN puffle_quest.task_id IS 'Quest task ID';
|
|
||||||
COMMENT ON COLUMN puffle_quest.completion_date IS 'Time of completion';
|
|
||||||
COMMENT ON COLUMN puffle_quest.item_collected IS 'Item collection status';
|
|
||||||
COMMENT ON COLUMN puffle_quest.coins_collected IS 'Coins collection status';
|
|
||||||
|
|
||||||
DROP TABLE IF EXISTS redemption_code;
|
DROP TABLE IF EXISTS redemption_code;
|
||||||
CREATE TABLE redemption_code (
|
CREATE TABLE redemption_code (
|
||||||
id SERIAL,
|
id SERIAL,
|
||||||
|
@ -59,17 +59,6 @@ class PuffleTreasurePuffleItem(db.Model):
|
|||||||
primary_key=True, nullable=False)
|
primary_key=True, nullable=False)
|
||||||
|
|
||||||
|
|
||||||
class PuffleQuest(db.Model):
|
|
||||||
__tablename__ = 'puffle_quest'
|
|
||||||
|
|
||||||
penguin_id = db.Column(db.ForeignKey('penguin.id', ondelete='CASCADE', onupdate='CASCADE'), primary_key=True,
|
|
||||||
nullable=False)
|
|
||||||
task_id = db.Column(db.SmallInteger, primary_key=True, nullable=False)
|
|
||||||
completion_date = db.Column(db.DateTime)
|
|
||||||
item_collected = db.Column(db.Boolean, nullable=False, server_default=db.text("false"))
|
|
||||||
coins_collected = db.Column(db.Boolean, nullable=False, server_default=db.text("false"))
|
|
||||||
|
|
||||||
|
|
||||||
class PenguinPuffle(db.Model):
|
class PenguinPuffle(db.Model):
|
||||||
__tablename__ = 'penguin_puffle'
|
__tablename__ = 'penguin_puffle'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user