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