๐Ÿ‘ฉโ€๐Ÿš’ Firefighters API written in Gleam!
lustre gleam

:card_file_box: add primary key to crew_membership

kacaii.dev 6c8197a2 0bf6a0a7

verified
+5 -1
+5 -1
sql/create/tables.sql
··· 18 is_active boolean not null default false, 19 created_at timestamp not null default current_timestamp, 20 updated_at timestamp not null default current_timestamp, 21 primary key (id) 22 ); 23 ··· 30 is_active boolean not null default false, 31 created_at timestamp not null default current_timestamp, 32 updated_at timestamp not null default current_timestamp, 33 primary key (id) 34 ); 35 ··· 40 crew_id uuid not null references crew (id) 41 on update cascade on delete cascade, 42 user_id uuid not null references user_account (id) 43 - on update cascade on delete cascade 44 ); 45 46 create index idx_crew_membership_crew on crew_membership (crew_id);
··· 18 is_active boolean not null default false, 19 created_at timestamp not null default current_timestamp, 20 updated_at timestamp not null default current_timestamp, 21 + 22 primary key (id) 23 ); 24 ··· 31 is_active boolean not null default false, 32 created_at timestamp not null default current_timestamp, 33 updated_at timestamp not null default current_timestamp, 34 + 35 primary key (id) 36 ); 37 ··· 42 crew_id uuid not null references crew (id) 43 on update cascade on delete cascade, 44 user_id uuid not null references user_account (id) 45 + on update cascade on delete cascade, 46 + 47 + primary key (id) 48 ); 49 50 create index idx_crew_membership_crew on crew_membership (crew_id);