delete cascade

This commit is contained in:
Aaron Kimbre 2023-11-19 02:28:30 -06:00
parent 913105fc31
commit 4deabca780

View File

@ -1,5 +1,5 @@
CREATE TABLE IF NOT EXISTS accounts_rewardcodes (
account_id INT NOT NULL REFERENCES accounts(id),
account_id INT NOT NULL REFERENCES accounts(id) ON DELETE CASCADE,
rewardcode INT NOT NULL,
PRIMARY KEY (account_id, rewardcode)
);