<?php

return <<<'SQL'
CREATE TABLE survey_questions (
    id CHAR(36) NOT NULL PRIMARY KEY,
    survey_id CHAR(36) NOT NULL,
    question TEXT NOT NULL,
    question_type VARCHAR(50) NOT NULL,
    is_required BIT NOT NULL DEFAULT 0,
    sort_order INT NOT NULL DEFAULT 0,
    created_at DATETIME NOT NULL,
    updated_at DATETIME NOT NULL,
    FOREIGN KEY (survey_id) REFERENCES surveys(id)
);
SQL;
