20250409_sql.sql 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. -- ---------------------------------------------------------------
  2. -- 意见反馈
  3. -- ---------------------------------------------------------------
  4. drop table if exists `feedback`;
  5. create table `feedback`
  6. (
  7. id bigint not null comment '主键编号'
  8. primary key,
  9. create_user_id bigint null comment '创建人',
  10. create_date datetime null comment '创建时间',
  11. modify_user_id bigint null comment '修改人',
  12. modify_date datetime null comment '修改时间',
  13. delete_mark int not null comment '删除标记',
  14. enabled_mark int not null comment '有效标志',
  15. `user_id` bigint not null comment '意见反馈反馈用户主键id(xjr_user)',
  16. `user_type` int not null comment '用户类型(1:教师,2:学生,3:家长)',
  17. `terminal_type` varchar(64) not null comment '终端类型(xjr_dictionary_item(terminal_type))',
  18. `feedback_time` datetime not null comment '反馈时间',
  19. `handle_status` int default 0 comment '处理状态(0:未处理,1:已处理)',
  20. `handle_time` datetime default null comment '处理时间',
  21. `handle_read_status` int default 0 comment '处理知晓状态(0:没有未读,1:有未读)'
  22. ) engine = innodb
  23. default charset = utf8mb4 comment = '意见反馈';
  24. -- ---------------------------------------------------------------
  25. -- 意见反馈-具体反馈单项
  26. -- ---------------------------------------------------------------
  27. drop table if exists `feedback_item`;
  28. create table `feedback_item`
  29. (
  30. id bigint not null comment '主键编号'
  31. primary key,
  32. create_user_id bigint null comment '创建人',
  33. create_date datetime null comment '创建时间',
  34. modify_user_id bigint null comment '修改人',
  35. modify_date datetime null comment '修改时间',
  36. delete_mark int not null comment '删除标记',
  37. enabled_mark int not null comment '有效标志',
  38. `feedback_id` bigint not null comment '意见反馈主键id(feedback)',
  39. `feedback` varchar(512) not null comment '反馈文本',
  40. `feedback_file_id` bigint default null comment '反馈附件主键id',
  41. `reply_status` int default 0 comment '回复状态(0:未回复,1:已回复)',
  42. `reply_user_id` bigint default null comment '回复反馈用户主键id(xjr_user)',
  43. `reply` varchar(512) default null comment '回复文本',
  44. `reply_file_id` bigint default null comment '回复附件主键id',
  45. `reply_time` datetime default null comment '回复时间',
  46. `reply_read_status` int default 0 comment '回复阅读状态(0:未读,1:已读)'
  47. ) engine = innodb
  48. default charset = utf8mb4 comment = '意见反馈-具体反馈单项';