taskcafe/api/migrations/0036_add-fkey-to-user_id-on-refresh_token-table.up.sql

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;