38443-vm/db/migrations/20260216_autorole_channels.sql
Flatlogic Bot f20e908050 autoroles
2026-02-16 03:19:06 +00:00

12 lines
430 B
SQL

-- Add autorole channels support
CREATE TABLE IF NOT EXISTS channel_autoroles (
id INT AUTO_INCREMENT PRIMARY KEY,
channel_id INT NOT NULL,
icon VARCHAR(50) NOT NULL,
title VARCHAR(255) NOT NULL,
role_id INT NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (channel_id) REFERENCES channels(id) ON DELETE CASCADE,
FOREIGN KEY (role_id) REFERENCES roles(id) ON DELETE CASCADE
);