temple_activity.sql 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : TestMySql
  4. Source Server Version : 50721
  5. Source Host : 120.79.211.173:3306
  6. Source Database : bore
  7. Target Server Type : MYSQL
  8. Target Server Version : 50721
  9. File Encoding : 65001
  10. Date: 2020-12-14 14:58:57
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for `temple_activity`
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `temple_activity`;
  17. CREATE TABLE `temple_activity` (
  18. `act_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '编号',
  19. `link_code` varchar(32) NOT NULL COMMENT '活动唯一链接码',
  20. `title` varchar(64) NOT NULL COMMENT '活动名称',
  21. `cycle_date` tinyint(3) unsigned NOT NULL COMMENT '活动周期',
  22. `once_start` varchar(16) NOT NULL COMMENT '一次性活动开始时间',
  23. `once_end` varchar(16) NOT NULL COMMENT '一次性活动结束时间',
  24. `disabled` tinyint(3) unsigned NOT NULL COMMENT '活动上下架状态',
  25. `act_place` varchar(64) NOT NULL COMMENT '活动地点',
  26. `act_type` varchar(12) NOT NULL COMMENT '活动类型名称',
  27. `title_img` varchar(128) NOT NULL COMMENT '活动标题图',
  28. `act_btn` varchar(12) NOT NULL COMMENT '页面底部按钮文本',
  29. `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  30. PRIMARY KEY (`act_id`),
  31. UNIQUE KEY `temple_activity_linkcode_idx` (`link_code`)
  32. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='寺院活动主表';
  33. -- ----------------------------
  34. -- Table structure for `temple_activity_content`
  35. -- ----------------------------
  36. DROP TABLE IF EXISTS `temple_activity_content`;
  37. CREATE TABLE `temple_activity_content` (
  38. `act_id` int(10) unsigned NOT NULL COMMENT '活动主表的编号',
  39. `act_content` text NOT NULL COMMENT '文章内容',
  40. PRIMARY KEY (`act_id`)
  41. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='寺院活动介绍内容表';
  42. -- ----------------------------
  43. -- Table structure for `temple_activity_pay_item`
  44. -- ----------------------------
  45. DROP TABLE IF EXISTS `temple_activity_pay_item`;
  46. CREATE TABLE `temple_activity_pay_item` (
  47. `item_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '编号',
  48. `act_id` int(10) unsigned NOT NULL COMMENT '活动主表的编号',
  49. `item_name` varchar(64) NOT NULL COMMENT '支付项目名称',
  50. `item_img` varchar(128) NOT NULL COMMENT '支付项目图标',
  51. `amount` int(10) unsigned NOT NULL COMMENT '支付项目金额',
  52. PRIMARY KEY (`item_id`),
  53. KEY `tactivity_actid_idx` (`act_id`)
  54. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='寺院活动支付项目';
  55. -- ----------------------------
  56. -- Table structure for `temple_activity_user`
  57. -- ----------------------------
  58. DROP TABLE IF EXISTS `temple_activity_user`;
  59. CREATE TABLE `temple_activity_user` (
  60. `act_uid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '活动用户表的编号',
  61. `act_id` int(10) unsigned NOT NULL COMMENT '活动主表的编号',
  62. `item_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '支付项的编号',
  63. `user_id` int(10) unsigned NOT NULL COMMENT '活动参与用户的ID',
  64. `object_name` varchar(20) NOT NULL COMMENT '对象名称',
  65. `demand` varchar(64) NOT NULL COMMENT '对象需求',
  66. `city` varchar(20) NOT NULL COMMENT '要求所在城市',
  67. `contacts` varchar(20) NOT NULL COMMENT '联系人',
  68. `contact_tel` varchar(20) NOT NULL COMMENT '联系人电话',
  69. `ustatus` tinyint(3) unsigned NOT NULL COMMENT '用户参与的状态',
  70. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  71. `pay_platform` varchar(12) NOT NULL DEFAULT '' COMMENT '支付平台',
  72. `pay_status` tinyint(3) unsigned NOT NULL COMMENT '用户支付的状态',
  73. `amount` decimal(8,2) unsigned NOT NULL COMMENT '支付金额',
  74. `trade_no` varchar(64) NOT NULL COMMENT '交易号',
  75. `payed_no` varchar(64) NOT NULL COMMENT '支付的流水号',
  76. `payed_time` datetime DEFAULT NULL COMMENT '支付时间',
  77. PRIMARY KEY (`act_uid`),
  78. KEY `tactivity_useractId_idx` (`act_id`)
  79. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='寺院活动参与用户表';