Skip to content

Commit

Permalink
Fix commenting in 20241116085102-initialize-up.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Francis Duvivier committed Dec 9, 2024
1 parent d8de784 commit 15fdef0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions migrations/sqls/20241116085102-initialize-up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ create table badges

create table users
(
id text primary key, -- using text as recommended
email text unique, -- using text as recommended
id text primary key,
email text unique,
admin boolean,
name text not null,
password text not null,
Expand All @@ -44,7 +44,7 @@ create table projects
slug text not null primary key,
git text,
allow_team_fixes boolean,
constraint projects_user_id_fk foreign key (user_id) references users (id) on delete cascade -- if user is deleted, delete his projects
constraint projects_user_id_fk foreign key (user_id) references users (id) on delete cascade -- if a user is deleted from the database, the projects associated with that user should also be deleted
);

create index idx_user_id on projects (user_id); -- allow searching projects by user_id efficiently
Expand Down

0 comments on commit 15fdef0

Please sign in to comment.