๐Ÿ‘ฉโ€๐Ÿš’ 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 18 is_active boolean not null default false, 19 19 created_at timestamp not null default current_timestamp, 20 20 updated_at timestamp not null default current_timestamp, 21 + 21 22 primary key (id) 22 23 ); 23 24 ··· 30 31 is_active boolean not null default false, 31 32 created_at timestamp not null default current_timestamp, 32 33 updated_at timestamp not null default current_timestamp, 34 + 33 35 primary key (id) 34 36 ); 35 37 ··· 40 42 crew_id uuid not null references crew (id) 41 43 on update cascade on delete cascade, 42 44 user_id uuid not null references user_account (id) 43 - on update cascade on delete cascade 45 + on update cascade on delete cascade, 46 + 47 + primary key (id) 44 48 ); 45 49 46 50 create index idx_crew_membership_crew on crew_membership (crew_id);