Files
ajet-chat/api/resources/migrations/005-create-channel-categories.up.sql
2026-02-17 17:30:45 -05:00

7 lines
271 B
SQL

CREATE TABLE IF NOT EXISTS channel_categories (
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
community_id uuid NOT NULL REFERENCES communities (id) ON DELETE CASCADE,
name text NOT NULL,
position int NOT NULL DEFAULT 0
);