Spending lots of time on useless discord bots makes to make the pain go away
This commit is contained in:
1
migrations/000003_create_guild_profiles_table.down.sql
Normal file
1
migrations/000003_create_guild_profiles_table.down.sql
Normal file
@ -0,0 +1 @@
|
||||
DROP TABLE IF EXISTS guild_profiles;
|
14
migrations/000003_create_guild_profiles_table.up.sql
Normal file
14
migrations/000003_create_guild_profiles_table.up.sql
Normal file
@ -0,0 +1,14 @@
|
||||
CREATE TABLE IF NOT EXISTS guild_profiles (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
user_id INTEGER NOT NULL,
|
||||
guild_id TEXT NOT NULL,
|
||||
-- Himbucks-related fields
|
||||
currency_balance INTEGER DEFAULT 0,
|
||||
message_count INTEGER DEFAULT 0,
|
||||
last_reward_at DATETIME,
|
||||
-- Add other profile-related fields here as needed
|
||||
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY (user_id) REFERENCES users(id),
|
||||
UNIQUE(user_id, guild_id)
|
||||
);
|
@ -1 +0,0 @@
|
||||
DROP TABLE IF EXISTS himbucks;
|
@ -1,10 +0,0 @@
|
||||
CREATE TABLE IF NOT EXISTS himbucks (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
user_id INTEGER NOT NULL,
|
||||
guild_id TEXT NOT NULL,
|
||||
balance INTEGER DEFAULT 0,
|
||||
message_count INTEGER DEFAULT 0,
|
||||
last_earned_at DATETIME,
|
||||
FOREIGN KEY (user_id) REFERENCES users(id),
|
||||
UNIQUE(user_id, guild_id)
|
||||
);
|
Reference in New Issue
Block a user