help.sql 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. -- ----------------------------
  2. -- table structure for family_help
  3. -- ----------------------------
  4. drop table if exists family_help;
  5. create table family_help (
  6. help_id bigint(20) not null default 0 COMMENT '求助id',
  7. family_id bigint(20) not null default 0 COMMENT '家庭id',
  8. help_to varchar(20) not null default 0 COMMENT '求助对象 1 居委会 2 业委会 3 物业 4 志愿者',
  9. /*help_to1 varchar(20) not null default 0 COMMENT '求助对象 1 居委会 2 业委会 3 物业 4 志愿者',
  10. help_to2 varchar(20) not null default 0 COMMENT '求助对象 1 居委会 2 业委会 3 物业 4 志愿者',
  11. help_to3 varchar(20) not null default 0 COMMENT '求助对象 1 居委会 2 业委会 3 物业 4 志愿者',
  12. help_to4 varchar(20) not null default 0 COMMENT '求助对象 1 居委会 2 业委会 3 物业 4 志愿者',*/
  13. /*help_title varchar(20) not null default '' COMMENT '求助标题',*/
  14. help_type int NOT NULL DEFAULT 0 COMMENT '求助类型:1生活必需品,2医药求助,3其他求助',
  15. help_content varchar(200) not null default '' COMMENT '求助内容',
  16. help_status int not null default 1 COMMENT '求助状态 1 已解决 2 未解决 3 完成求助',
  17. /*help_score int not null default 0 COMMENT '求助星个数 最多为5 默认为0',
  18. help_evaluate varchar(200) not null default '' COMMENT '求助评价',*/
  19. user_id bigint(20) NOT NULL DEFAULT 0 COMMENT '用户ID',
  20. handle_status int not null default 0 COMMENT '处理状态 1 处理中 2 处理完毕',
  21. user_create bigint(20) not null default '0' COMMENT '新增人',
  22. time_create datetime not null default current_timestamp COMMENT '新增时间',
  23. user_update bigint(20) not null default '0' COMMENT '修改人',
  24. time_update datetime not null default current_timestamp on update current_timestamp COMMENT '修改时间',
  25. primary key (help_id)
  26. )
  27. engine=innodb
  28. default charset=utf8
  29. comment='家庭求助信息表';
  30. -- ----------------------------
  31. -- Table structure for re_help_reply
  32. -- ----------------------------
  33. DROP TABLE IF EXISTS re_help_reply;
  34. CREATE TABLE re_help_reply (
  35. reply_id bigint(20) NOT NULL DEFAULT 0 COMMENT '回复ID',
  36. help_id bigint(20) NOT NULL DEFAULT 0 COMMENT '求助ID',
  37. user_id bigint(20) NOT NULL DEFAULT 0 COMMENT '用户ID',
  38. reply_content varchar(100) NOT NULL DEFAULT '' COMMENT '回复内容',
  39. user_create bigint(20) NOT NULL DEFAULT 0 COMMENT '新增人',
  40. time_create datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '新增时间',
  41. user_update bigint(20) NOT NULL DEFAULT 0 COMMENT '修改人',
  42. time_update datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '修改时间',
  43. PRIMARY KEY (reply_id) USING BTREE
  44. ) ENGINE = InnoDB default charset=utf8 comment = '家庭求助回复表';