tangled
alpha
login
or
join now
kacaii.dev
/
sigo
0
fork
atom
๐ฉโ๐ Firefighters API written in Gleam!
lustre
gleam
0
fork
atom
overview
issues
pulls
pipelines
:card_file_box: add primary key to crew_membership
kacaii.dev
1 week ago
6c8197a2
0bf6a0a7
verified
This commit was signed with the committer's
known signature
.
kacaii.dev
SSH Key Fingerprint:
SHA256:n9v7QGNWHCUv1x/483hCtPUvTsVabU5PzC5CSJMUNtI=
+5
-1
1 changed file
expand all
collapse all
unified
split
sql
create
tables.sql
+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,
0
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,
0
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
0
0
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);