数据类型
见:https://www.runoob.com/mysql/mysql-data-types.html
创建表的sql语句
create table option_table
(
id bigint auto_increment comment 'id',
q_id bigint not null comment '所属题目id',
option_des VARCHAR(5000) not null comment '选项描述(单选、多选、判断->选项描述;填空、计算->答案)',
is_true tinyint comment '该选项是否正确(单选、多选、判断->0/1;填空、计算->空)',
order tinyint comment '选项顺序(1、2、3、4、5...)',
create_time datetime not null default current_timestamp comment '创建时间',
update_time datetime not null default current_timestamp on update current_timestamp comment '更新时间',
create_user VARCHAR(100) not null comment '创建人',
update_user VARCHAR(100) not null comment '更新人',
is_delete tinyint not null default 0 comment '是否被删除 0:未删除;1:被删除',
constraint option_table_pk
primary key (id)
) comment '选项表';