mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
11 lines
447 B
SQL
11 lines
447 B
SQL
CREATE TABLE team_access_request (
|
|
id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
|
|
team_id uuid NOT NULL REFERENCES team(id) ON DELETE CASCADE DEFERRABLE,
|
|
requester_id uuid NULL REFERENCES profile(id) ON DELETE CASCADE DEFERRABLE,
|
|
valid_until timestamptz NOT NULL,
|
|
auto_join_until timestamptz NOT NULL,
|
|
created_at timestamptz NOT NULL DEFAULT now(),
|
|
updated_at timestamptz NOT NULL DEFAULT now(),
|
|
UNIQUE (team_id, requester_id)
|
|
);
|