gitdataai/lib/migrate/sql/room/room_permission_overwrite_up_01.sql
2026-05-30 01:38:40 +08:00

11 lines
387 B
SQL

CREATE TABLE IF NOT EXISTS room_permission_overwrite (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
room UUID NOT NULL REFERENCES room(id),
target_type TEXT NOT NULL,
target_id UUID NOT NULL,
allow_permissions TEXT NOT NULL,
deny_permissions TEXT NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
);