Added ✨himbucks✨
This commit is contained in:
1
migrations/000003_create_himbucks_table.down.sql
Normal file
1
migrations/000003_create_himbucks_table.down.sql
Normal file
@ -0,0 +1 @@
|
||||
DROP TABLE IF EXISTS himbucks;
|
10
migrations/000003_create_himbucks_table.up.sql
Normal file
10
migrations/000003_create_himbucks_table.up.sql
Normal 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)
|
||||
);
|
Reference in New Issue
Block a user