survey/migrations/20211010134814_survey_response_tokens.sql
2021-10-10 19:23:48 +05:30

5 lines
242 B
SQL

CREATE TABLE IF NOT EXISTS survey_response_tokens (
resp_id INTEGER NOT NULL references survey_responses(ID) ON DELETE CASCADE,
user_id UUID NOT NULL references survey_users(ID) ON DELETE CASCADE,
ID UUID PRIMARY KEY NOT NULL UNIQUE
);