taskcafe/api/migrations/0036-add-fkey-to-user_id-on-refresh_token-table.up.sql
2020-06-23 15:20:53 -05:00

6 lines
150 B
SQL

ALTER TABLE refresh_token
ADD CONSTRAINT refresh_token_user_id_fkey
FOREIGN KEY (user_id)
REFERENCES user_account(user_id)
ON DELETE CASCADE;