8 lines
324 B
SQL
8 lines
324 B
SQL
CREATE TABLE IF NOT EXISTS api_users (
|
|
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
name text NOT NULL,
|
|
community_id uuid NOT NULL REFERENCES communities (id) ON DELETE CASCADE,
|
|
created_by uuid REFERENCES users (id),
|
|
created_at timestamptz DEFAULT now()
|
|
);
|