-- +goose Up CREATE TABLE orgs ( id uuid PRIMARY KEY DEFAULT gen_random_uuid(), slug citext NOT NULL UNIQUE CHECK (slug ~ '^[a-z0-9][a-z0-9-]{1,62}$'), name text NOT NULL CHECK (length(name) BETWEEN 1 AND 200), created_at timestamptz NOT NULL DEFAULT now(), updated_at timestamptz NOT NULL DEFAULT now() ); -- +goose Down DROP TABLE orgs;