Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified src/data/database.sqlite
Binary file not shown.
2 changes: 1 addition & 1 deletion src/models/shopItemModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function initDb(db) {
effect_type TEXT CHECK (
effect_type IS NULL OR effect_type IN ('glow', 'warmth', 'weight')
),
effect_value TEXT,
effect_value INTEGER,
asset_url TEXT,
is_active INTEGER NOT NULL DEFAULT 1 CHECK (
is_active IN (0, 1)
Expand Down
2 changes: 1 addition & 1 deletion src/models/userQuestModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function initDb(db) {
completed_post_id INTEGER,
completed_at STRING,

UNIQUE(user_id, quest_id),
UNIQUE(user_id, quest_id, assigned_date),
FOREIGN KEY (quest_id) REFERENCES quests(quest_id),
FOREIGN KEY (user_id)
REFERENCES users(user_id)
Expand Down
Loading