Skip to main content

max / multithreaded

290 B · 10 lines History Blame Raw
1 CREATE TABLE communities (
2 id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
3 name TEXT NOT NULL,
4 slug TEXT NOT NULL UNIQUE,
5 description TEXT,
6 created_at TIMESTAMPTZ NOT NULL DEFAULT now()
7 );
8
9 CREATE INDEX idx_communities_slug ON communities (slug);
10