def up(cursor, bot):
    cursor.execute('\n    CREATE TABLE timeouts(\n        id SERIAL PRIMARY KEY,\n        active BOOL DEFAULT TRUE NOT NULL,\n        user_id TEXT REFERENCES "user"(discord_id) ON DELETE CASCADE NOT NULL,\n        issued_by_id TEXT REFERENCES "user"(discord_id) ON DELETE SET NULL,\n        unbanned_by_id TEXT REFERENCES "user"(discord_id) ON DELETE SET NULL,\n        ban_reason TEXT,\n        unban_reason TEXT,\n        until TIMESTAMPTZ,\n        created_at TIMESTAMPTZ NOT NULL\n    )\n    ')
def up(cursor, bot):
    cursor.execute('\n    CREATE TABLE timeouts(\n        id SERIAL PRIMARY KEY,\n        active BOOL DEFAULT TRUE NOT NULL,\n        user_id TEXT REFERENCES "user"(discord_id) ON DELETE CASCADE NOT NULL,\n        issued_by_id TEXT REFERENCES "user"(discord_id) ON DELETE SET NULL,\n        unbanned_by_id TEXT REFERENCES "user"(discord_id) ON DELETE SET NULL,\n        ban_reason TEXT,\n        unban_reason TEXT,\n        until TIMESTAMPTZ,\n        created_at TIMESTAMPTZ NOT NULL\n    )\n    ')