taskcafe/api/migrations/0004_add-project-table.up.sql
2020-04-09 21:40:22 -05:00

7 lines
190 B
SQL

CREATE TABLE project (
project_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
team_id uuid NOT NULL REFERENCES team(team_id),
created_at timestamptz NOT NULL,
name text NOT NULL
);