--up

CREATE TABLE welcome_survey_answers (
    id integer GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
    "user_id" integer REFERENCES users (id) ON UPDATE RESTRICT ON DELETE CASCADE NOT NULL,
    hear_about_us text NOT NULL,
    hear_about_us_details text,
    user_self_description text NOT NULL,
    created_at timestamp without time zone NOT NULL DEFAULT now()
);
ALTER TABLE signup_surveys RENAME TO typeform_signup_surveys;

--down

DROP TABLE welcome_survey_answers;
ALTER TABLE typeform_signup_surveys RENAME TO signup_surveys;