CREATE TABLE t_exam_paper (
  id                   INT NOT NULL IDENTITY,
  name                 VARCHAR(255),
  subject_id           INT,
  paper_type           INT,
  grade_level          INT,
  score                INT,
  question_count       INT,
  suggest_time         INT,
  limit_start_time     DATETIME,
  limit_end_time       DATETIME,
  frame_text_content_id INT,
  create_user          INT,
  create_time          DATETIME,
  deleted              TINYINT,
  task_exam_id         INT,
  PRIMARY KEY (id)
);

-- ----------------------------
-- Table structure for t_exam_paper_answer
-- ----------------------------
CREATE TABLE t_exam_paper_answer (
  id                   INT NOT NULL IDENTITY,
  exam_paper_id        INT,
  paper_name           VARCHAR(255),
  paper_type           INT,
  subject_id           INT,
  system_score         INT,
  user_score           INT,
  paper_score          INT,
  question_correct     INT,
  question_count       INT,
  do_time              INT,
  status               INT,
  create_user          INT,
  create_time          DATETIME,
  task_exam_id         INT,
  PRIMARY KEY (id)
);

-- ----------------------------
-- Table structure for t_exam_paper_question_customer_answer
-- ----------------------------
CREATE TABLE t_exam_paper_question_customer_answer (
  id                   INT NOT NULL IDENTITY,
  question_id          INT,
  exam_paper_id        INT,
  exam_paper_answer_id INT,
  question_type        INT,
  subject_id           INT,
  customer_score       INT,
  question_score       INT,
  question_text_content_id INT,
  answer               VARCHAR(255),
  text_content_id      INT,
  do_right             TINYINT,
  create_user          INT,
  create_time          DATETIME,
  item_order           INT,
  PRIMARY KEY (id)
);

-- ----------------------------
-- Table structure for t_message
-- ----------------------------
CREATE TABLE t_message (
  id                   INT NOT NULL IDENTITY,
  title                VARCHAR(255),
  content              VARCHAR(500),
  create_time          DATETIME,
  send_user_id         INT,
  send_user_name       VARCHAR(255),
  send_real_name       VARCHAR(255),
  receive_user_count   INT,
  read_count           INT,
  PRIMARY KEY (id)
);

-- ----------------------------
-- Table structure for t_message_user
-- ----------------------------
CREATE TABLE t_message_user (
  id                   INT NOT NULL IDENTITY,
  message_id           INT,
  receive_user_id      INT,
  receive_user_name    VARCHAR(255),
  receive_real_name    VARCHAR(255),
  readed               TINYINT,
  create_time          DATETIME,
  read_time            DATETIME,
  PRIMARY KEY (id)
);

-- ----------------------------
-- Table structure for t_question
-- ----------------------------
CREATE TABLE t_question (
  id                   INT NOT NULL IDENTITY,
  question_type        INT,
  subject_id           INT,
  score                INT,
  grade_level          INT,
  difficult            INT,
  correct              TEXT,
  info_text_content_id INT,
  create_user          INT,
  status               INT,
  create_time          DATETIME,
  deleted              TINYINT,
  PRIMARY KEY (id)
);

-- ----------------------------
-- Table structure for t_subject
-- ----------------------------
CREATE TABLE t_subject (
  id                   INT NOT NULL IDENTITY,
  name                 VARCHAR(255),
  level                INT,
  level_name           VARCHAR(255),
  item_order           INT,
  deleted              TINYINT,
  PRIMARY KEY (id)
);

-- ----------------------------
-- Table structure for t_task_exam
-- ----------------------------
CREATE TABLE t_task_exam (
  id                   INT NOT NULL IDENTITY,
  title                VARCHAR(255),
  grade_level          INT,
  frame_text_content_id INT,
  create_user          INT,
  create_time          DATETIME,
  deleted              TINYINT,
  create_user_name     VARCHAR(255),
  PRIMARY KEY (id)
);

-- ----------------------------
-- Table structure for t_task_exam_customer_answer
-- ----------------------------
CREATE TABLE t_task_exam_customer_answer (
  id                   INT NOT NULL IDENTITY,
  task_exam_id         INT,
  create_user          INT,
  create_time          DATETIME,
  text_content_id      INT,
  PRIMARY KEY (id)
);

-- ----------------------------
-- Table structure for t_text_content
-- ----------------------------
CREATE TABLE t_text_content (
  id                   INT NOT NULL IDENTITY,
  content              TEXT,
  create_time          DATETIME,
  PRIMARY KEY (id)
);