51
CREATE TABLE `mm_order-complains` (
`complainId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`orderId` int(11) NOT NULL DEFAULT '0' COMMENT '订单ID',
`complainType` tinyint(4) NOT NULL DEFAULT '0' COMMENT '投诉类型',
`complainTargetId` int(11) NOT NULL DEFAULT '0' COMMENT '投诉人ID',
`respondTargetId` int(11) NOT NULL DEFAULT '0' COMMENT '应诉人Id',
`needRespond` tinyint(4) NOT NULL COMMENT '是否需要支付',
`deliverRespondTime` datetime DEFAULT NULL COMMENT '移交应诉时间',
`complainContent` text NOT NULL COMMENT '投诉内容',
`complainAnnex` varchar(255) DEFAULT NULL COMMENT '投诉附件',
`complainStatus` tinyint(4) NOT NULL COMMENT '投诉状态',
`complainTime` datetime NOT NULL COMMENT '创建时间',
`respondContent` text COMMENT '应诉内容',
`respondAnnex` varchar(255) DEFAULT NULL COMMENT '应诉附件',
`respondTime` datetime DEFAULT NULL COMMENT '应诉时间',
`finalResult` text COMMENT '仲裁结果',
`finalResultTime` datetime DEFAULT NULL COMMENT '仲裁时间',
`finalHandLeStaffid` int(11) DEFAULT '0' COMMENT '仲裁人ID',
PRIMARY KEY (`complainId`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='shuGuo 订单投诉表';
52
CREATE TABLE `mm_order-express` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`orderId` int(11) NOT NULL COMMENT '订单ID',
`orderGoodsld` varchar(100) NOT NULL COMMENT '订单商品ID列表',
`deliverTime` datetime DEFAULT NULL COMMENT '发货时间',
`isExpress` tinyint(4) DEFAULT NULL COMMENT '发货方式',
`expressId` varchar(255) DEFAULT NULL COMMENT '快递商ID',
`expressNo` varchar(20) DEFAULT NULL COMMENT '快递号',
`createTime` datetime NOT NULL COMMENT '创建时间',
`dataFlag` tinyint(4) NOT NULL COMMENT '有效标志',
`deliverType` tinyint(4) DEFAULT NULL COMMENT '发货类型标志',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='shuGuo 订单物流表';
53
CREATE TABLE `mm_refunds` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`orderld` int(11) NOT NULL COMMENT '订单ID',
`refundTo` int(11) NOT NULL DEFAULT 0 COMMENT '接收退款用户',
`refundReson` int(11) NOT NULL DEFAULT 0 COMMENT '用户申请退款原因ID',
`refundOtherReson` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户申请退款原因',
`backMoney` decimal(11, 2) NOT NULL COMMENT '用户退款金额',
`refundTradeNo` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '管理员退款流水号',
`refundRemark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '退款备注',
`refundTime` datetime(0) NOT NULL COMMENT '退款时间',
`shopRejectReason` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '店铺不同意拒收原因',
`refundStatus` tinyint(4) NOT NULL DEFAULT 1 COMMENT '退款状态(-1:商家不同意 0:等待商家处理 1:商家同意 2:管理员已处理)',
`createTime` datetime(0) NOT NULL COMMENT '用户申请退款时间',
`serviceld` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '售后订单ID',
`isServiceRefund` tinyint(4) UNSIGNED NOT NULL DEFAULT 0 COMMENT '售后单是否已退款(0:未退款 1:已退款)',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
54
CREATE TABLE `mm_refunds` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`orderld` int(11) NOT NULL COMMENT '订单ID',
`refundTo` int(11) NOT NULL DEFAULT 0 COMMENT '接收退款用户',
`refundReson` int(11) NOT NULL DEFAULT 0 COMMENT '用户申请退款原因ID',
`refundOtherReson` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户申请退款原因',
`backMoney` decimal(11, 2) NOT NULL COMMENT '用户退款金额',
`refundTradeNo` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '管理员退款流水号',
`refundRemark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '退款备注',
`refundTime` datetime(0) NOT NULL COMMENT '退款时间',
`shopRejectReason` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '店铺不同意拒收原因',
`refundStatus` tinyint(4) NOT NULL DEFAULT 1 COMMENT '退款状态(-1:商家不同意 0:等待商家处理 1:商家同意 2:管理员已处理)',
`createTime` datetime(0) NOT NULL COMMENT '用户申请退款时间',
`serviceld` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '售后订单ID',
`isServiceRefund` tinyint(4) UNSIGNED NOT NULL DEFAULT 0 COMMENT '售后单是否已退款(0:未退款 1:已退款)',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
55
CREATE TABLE `mm_services` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`orderld` int(10) UNSIGNED NOT NULL COMMENT '订单ID',
`goodsServiceType` tinyint(4) UNSIGNED NOT NULL DEFAULT 0 COMMENT '售后类型(0:退款退货 1:退款 2:换货)',
`serviceType` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '退换货类型(数据由基础数据类型里取)',
`serviceRemark` varchar(600) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '退换货原因',
`serviceAnnex` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '附件',
`refundScore` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '本次申请可退换货的积分,由系统计算得出',
`useScoreMoney` decimal(11, 2) UNSIGNED NOT NULL COMMENT '使用的积分可抵扣金额',
`getScoreMoney` decimal(11, 2) UNSIGNED NOT NULL COMMENT '获得的积分可抵扣金额',
`refundMoney` decimal(11, 2) NULL DEFAULT NULL COMMENT '申请退款金额',
`refundableMoney` decimal(11, 2) NULL DEFAULT NULL COMMENT '售后单可退款金额',
`isShopAgree` tinyint(4) NULL DEFAULT 0 COMMENT '店铺是否同意(1:同意 0:不同意)',
`disagreeRemark` varchar(600) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '店铺不同意原因(商家不同意原因)',
`userAddressld` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '用户收货地址ID',
`areald` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '地区ID',
`arealdPath` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '地区ID值列表',
`userName` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户收货人',
`userAddress` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户详细收货地址',
`userPhone` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户收货电话',
`shopAreald` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '商家收货地区ID',
`shopArealdPath` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家收货地区ID值列表',
`shopName` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家收货人',
`shopAddress` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家详细收货地址',
`shopPhone` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家收货电话',
`isUserSendGoods` tinyint(4) NULL DEFAULT 0 COMMENT '用户是否发货(0:未发货 1:已发货)',
`expressType` tinyint(4) NULL DEFAULT 0 COMMENT '用户是否使用物流(0:无需物流 1:物流)',
`expressld` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '快递商ID',
`expressNo` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '快递号',
`isShopAccept` tinyint(4) NULL DEFAULT 0 COMMENT '商家是否收到货(-1:拒收 0:未收货 1:已收货)',
`shopRejectType` int(10) NOT NULL DEFAULT 0 COMMENT '商家拒收类型(数据由基础数据类型里取)',
`shopRejectlmg` varchar(150) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家拒收时的货物图片',
`isShopSend` tinyint(4) NOT NULL DEFAULT 0 COMMENT '商家是否发货',
`shopExpressType` tinyint(4) NULL DEFAULT 0 COMMENT '商家是否使用物流(0:无需物流 1:物流)',
`shopExpressNo` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家快递单号',
`isUerAccept` tinyint(4) NOT NULL DEFAULT 0 COMMENT '用户是否收到货(-1:拒收 0:未收货 1:已收货)',
`userRejectType` tinyint(4) NOT NULL DEFAULT 0 COMMENT '用户拒收类型',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`isClose` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否结束',
`serviceStatus` tinyint(4) NOT NULL DEFAULT 0 COMMENT '状态备注(0:等待商家审核 1:等待用户发货 2:等待商家收货 3:等待商家发货 4:等待用户收货 5:完成退款/退货 6:商家已确认发货 7:商家受理,等待管理员退款)',
`shopAcceptExpireTime` datetime(0) NULL DEFAULT NULL COMMENT '商家受理期限',
`userSendExpireTime` datetime(0) NULL DEFAULT NULL COMMENT '用户发货期限',
`shopReceiveExpireTime` datetime(0) NULL DEFAULT NULL COMMENT '商家收货期限',
`userReceiveExpireTime` datetime(0) NULL DEFAULT NULL COMMENT '用户收货期限',
`shopSendExpireTime` datetime(0) NULL DEFAULT NULL COMMENT '商家发货期限',
`userRejectOther` varchar(600) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户拒收原因',
`shopRejectOther` varchar(600) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家拒收原因,选择\'其他\'的时候填写文字',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
56
CREATE TABLE `mm_payments` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`payCode` varchar(20) DEFAULT NULL COMMENT '支付code',
`payName` varchar(255) DEFAULT NULL COMMENT '支付方式名称',
`payDesc` text COMMENT '支付方式描述',
`payOrder` int(11) DEFAULT '0' COMMENT '排序号',
`payConfig` text COMMENT '参数配置',
`enabled` tinyint(4) DEFAULT '0' COMMENT '是否启用(0:不启用 1:启用)',
`isOnline` tinyint(4) DEFAULT '0' COMMENT '是否在线支付(0:否 1:在线支付)',
`payFor` varchar(100) DEFAULT NULL COMMENT '支付端标识(1:PC端 2;手机端 3:微信端 4:APP端)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='shuGuo 支付方式表';
57
CREATE TABLE `mm_privileges` (
`privilegeId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`menuId` int(11) NOT NULL COMMENT '父ID',
`privilegeCode` varchar(20) NOT NULL COMMENT '权限代码',
`privilegeName` varchar(30) NOT NULL COMMENT '权限名称',
`isMenuPrivilege` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否菜单权限',
`privilegeUrl` varchar(255) DEFAULT NULL COMMENT '主权限Url',
`otherprivilegeUrl` text COMMENT '其他权限Url',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效状态(1:有效-1:无效)',
`isEnable` tinyint(4) DEFAULT '1' COMMENT '是否启用(0:未启用1:启用 一般用于插件标记)',
PRIMARY KEY (`privilegeId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='shuGuo 后台权限表';
58
CREATE TABLE `mm_recommends` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`goodsCatId` int(11) NOT NULL DEFAULT '0' COMMENT '商品分类ID',
`dataType` tinyint(4) NOT NULL DEFAULT '0' COMMENT '数据类型(0:推荐1:热销2:精品3:新品)',
`dataSrc` tinyint(4) DEFAULT '0' COMMENT '数据来源(0:商品1:店铺2:品牌)',
`dataId` int(11) NOT NULL DEFAULT '0' COMMENT '数据在其表中的主键',
`dataSort` int(11) NOT NULL DEFAULT '0' COMMENT '数据排序号',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='shuGuo 推荐记录表';
59
CREATE TABLE `mm_resorces` (
`resld` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`fromType` tinyint(4) NOT NULL DEFAULT '0' COMMENT '来在哪( 0:商家/用户 1:平台管理者)',
`dataId` int(11) NOT NULL DEFAULT '0' COMMENT '对像ID(该图片信息所在表的id)',
`resPath` varchar(150) NOT NULL COMMENT '资源路径',
`resSize` int(11) NOT NULL DEFAULT '0' COMMENT '资源大小(单位:字节)',
`isUse` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否使用(1:是 0:否)',
`createTime` datetime NOT NULL COMMENT '创建时间',
`fromTable` varchar(50) DEFAULT NULL COMMENT '来自哪张表',
`ownld` int(11) DEFAULT NULL COMMENT '上传者Id',
`dataFlag` tinyint(4) DEFAULT '1' COMMENT '删除标志(-1:删除 1:有效)',
`resType` tinyint(4) DEFAULT '0' COMMENT '资源类型(0:图片 1:视频)',
PRIMARY KEY (`resld`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='shuGuo 系统上传资源表';
60
CREATE TABLE `mm_roles` (
`roleld` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`roled` varchar(30) NOT NULL COMMENT '角色名称',
`roleDesc` varchar(255) DEFAULT NULL COMMENT '角色描述',
`privlieges` varchar(255) DEFAULT NULL COMMENT '权限列表',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效状态(-1:删除 1:有效)',
`createTime` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`roleld`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='shuGuo 角色表';