Open ultWorld opened 1 year ago
create table questions_new_free_assessment ( id bigint not null primary key, inserted_at timestamp default now() not null, updated_at timestamp default now() not null, question_text text not null, question_description text, **type public.valid_question_type not null,** choices text[], answer text, priority integer );
Here the the column type is defined as a custom struct type of the valid_question_type but its not exported in the sql or ts
CREATE TYPE valid_question_type AS ENUM ('choice', 'int', 'decimal', 'date');
this was used to generate in the beginning
Here the the column type is defined as a custom struct type of the valid_question_type but its not exported in the sql or ts