Fixed event foreign key setup
This commit is contained in:
parent
83e4e07f50
commit
a646186324
@ -62,14 +62,23 @@ create table if not exists projectplanner.team
|
|||||||
|
|
||||||
create table if not exists projectplanner.event
|
create table if not exists projectplanner.event
|
||||||
(
|
(
|
||||||
id bigserial not null
|
id
|
||||||
constraint event_pk
|
bigserial
|
||||||
primary key
|
not
|
||||||
|
null
|
||||||
|
constraint
|
||||||
|
event_pk
|
||||||
|
primary
|
||||||
|
key,
|
||||||
|
title
|
||||||
|
varchar
|
||||||
|
(
|
||||||
|
255
|
||||||
|
) not null,
|
||||||
|
description text,
|
||||||
|
project_id bigserial not null
|
||||||
constraint event_project_fk
|
constraint event_project_fk
|
||||||
references projectplanner.project,
|
references projectplanner.project,
|
||||||
title varchar(255) not null,
|
|
||||||
description text,
|
|
||||||
project_id bigserial not null,
|
|
||||||
start_time timestamp not null,
|
start_time timestamp not null,
|
||||||
end_time timestamp not null
|
end_time timestamp not null
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user