Spending lots of time on useless discord bots makes to make the pain go away

This commit is contained in:
2024-11-05 18:01:58 -06:00
parent 82c62658bb
commit 5a1158048d
10 changed files with 162 additions and 125 deletions

View File

@ -0,0 +1 @@
DROP TABLE IF EXISTS guild_profiles;

View 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)
);

View File

@ -1 +0,0 @@
DROP TABLE IF EXISTS himbucks;

View File

@ -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)
);