Authored by qianjun

add shops decorator

  1 +database erp_supplier
  2 +
  3 +
  4 +CREATE TABLE `shops_decorator` (
  5 + `id` int(11) NOT NULL AUTO_INCREMENT,
  6 + `shops_id` int(11) DEFAULT NULL,
  7 + `check_status` int(11) DEFAULT NULL COMMENT '100 暂存 200 待审核 300 审核通过 900 驳回',
  8 + `create_time` int(11) DEFAULT NULL,
  9 + `update_time` int(11) DEFAULT NULL,
  10 + `status` int(11) DEFAULT NULL,
  11 + PRIMARY KEY (`id`)
  12 +) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=utf8 COMMENT='店铺装修';
  13 +
  14 +
  15 +CREATE TABLE `shops_decorator_comment` (
  16 + `id` int(11) NOT NULL AUTO_INCREMENT,
  17 + `shops_decorator_id` int(11) DEFAULT NULL,
  18 + `shops_decorator_template_id` int(11) DEFAULT NULL,
  19 + `create_time` int(11) DEFAULT NULL,
  20 + `comment` varchar(100) DEFAULT NULL,
  21 + PRIMARY KEY (`id`)
  22 +) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8;
  23 +
  24 +
  25 +CREATE TABLE `shops_decorator_template` (
  26 + `id` int(11) NOT NULL AUTO_INCREMENT,
  27 + `shops_decorator_id` int(11) NOT NULL,
  28 + `platform` varchar(10) NOT NULL COMMENT '平台(PC,APP)',
  29 + `template_name` varchar(10) NOT NULL COMMENT '模板(BASE:基础模板,CLASSIC:经典模板)',
  30 + `create_time` int(11) NOT NULL,
  31 + `update_time` int(11) NOT NULL DEFAULT '0',
  32 + `is_enable` enum('N','Y','') DEFAULT 'Y' COMMENT '是否启用该模板',
  33 + PRIMARY KEY (`id`)
  34 +) ENGINE=InnoDB AUTO_INCREMENT=92 DEFAULT CHARSET=utf8 COMMENT='店铺装修模板';
  35 +
  36 +
  37 +CREATE TABLE `shops_decorator_template_resource` (
  38 + `id` int(11) NOT NULL AUTO_INCREMENT,
  39 + `shops_decorator_id` int(11) DEFAULT NULL,
  40 + `shops_decorator_template_id` int(11) DEFAULT NULL,
  41 + `resource_name` varchar(50) DEFAULT NULL,
  42 + `resource_data` text,
  43 + `create_time` int(11) DEFAULT NULL,
  44 + `update_time` int(11) DEFAULT NULL,
  45 + PRIMARY KEY (`id`)
  46 +) ENGINE=InnoDB AUTO_INCREMENT=948 DEFAULT CHARSET=utf8 COMMENT='店铺装修模板信息';
  47 +