Skip to content

Commit

Permalink
Closes DB foreing key issue #43
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Basov committed Oct 15, 2023
1 parent 76220c4 commit 75ef666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db-init-scripts/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ CREATE TABLE IF NOT EXISTS Applications (
CREATE TABLE IF NOT EXISTS Reminders (
reminder_id SERIAL PRIMARY KEY,
user_id INT REFERENCES Users(user_id),
application_id INT REFERENCES Applications(application_id),
application_id INT REFERENCES Applications(application_id) ON DELETE CASCADE
reminder_time TIME NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
Expand Down

0 comments on commit 75ef666

Please sign in to comment.