Added himbucks

This commit is contained in:
2024-11-05 00:19:36 -06:00
parent 6a55017624
commit 9a1b3723bc
5 changed files with 209 additions and 4 deletions

View File

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

View File

@ -0,0 +1,10 @@
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)
);