19-36 DDL查询
/*
Navicat MySQL Data Transfer
Source Server : MyLink
Source Server Version : 50726
Source Host : localhost:3306
Source Database : chen_shop
Target Server Type : MYSQL
Target Server Version : 50726
File Encoding : 65001
Date: 2024-04-28 14:27:48
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `crn_express`
-- ----------------------------
DROP TABLE IF EXISTS `crn_express`;
CREATE TABLE `crn_express` (
`expressId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`expressName` varchar(50) NOT NULL COMMENT '快递名称',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志(1:有效 -1:删除)',
`expressCode` varchar(50) DEFAULT NULL COMMENT '快递代码(主要用于物流插件)',
`isShow` tinyint(4) DEFAULT '1' COMMENT '是否启用(1:是 0:否)',
PRIMARY KEY (`expressId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COMMENT='陈若楠 快递表';
-- ----------------------------
-- Records of crn_express
-- ----------------------------
-- ----------------------------
-- Table structure for `crn_favorites`
-- ----------------------------
DROP TABLE IF EXISTS `crn_favorites`;
CREATE TABLE `crn_favorites` (
`favoriteId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`userId` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
`create Time` datetime NOT NULL COMMENT '创建时间',
`goodsId` int(11) DEFAULT NULL COMMENT '商品ID',
`currShopPrice` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '关注时的价格',
PRIMARY KEY (`favoriteId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COMMENT='陈若楠 关注商品表';
-- ----------------------------
-- Records of crn_favorites
-- ----------------------------
-- ----------------------------
-- Table structure for `crn_feedbacks`
-- ----------------------------
DROP TABLE IF EXISTS `crn_feedbacks`;
CREATE TABLE `crn_feedbacks` (
`feeedbackId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`feedback Type` int(4) NOT NULL DEFAULT '0' COMMENT '反馈类型,内容来自原系统基础数据表',
`userId` int(11) DEFAULT NULL COMMENT '反馈者ID',
`create Time` datetime NOT NULL COMMENT '反馈时间',
`feedbackContent` text COMMENT '反馈内容',
`contactlnfo` varchar(100) DEFAULT NULL COMMENT '联系方式',
`dataFlag` tinyint(4) DEFAULT '1' COMMENT '删除标志(1:有效 -1:删除)',
`feedbackStatus` tinyint(4) DEFAULT '0' COMMENT '反馈记录状态(0:待处理 1:有处理)',
`staffld` int(11) DEFAULT '0' COMMENT '处理者ID',
`handle Time` datetime DEFAULT NULL COMMENT '处理时间',
`handleContent` text COMMENT '处理结果',
PRIMARY KEY (`feeedbackId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COMMENT='陈若楠 用户反馈表';
-- ----------------------------
-- Records of crn_feedbacks
-- ----------------------------
-- ----------------------------
-- Table structure for `crn_friendlinks`
-- ----------------------------
DROP TABLE IF EXISTS `crn_friendlinks`;
CREATE TABLE `crn_friendlinks` (
`friendlinkId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`friendlinklco` varchar(150) DEFAULT NULL COMMENT '图标',
`friendlinkName` varchar(50) NOT NULL COMMENT '名称',
`friendlinkUrl` varchar(150) NOT NULL COMMENT '网址',
`friendlinkSort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志(-1:删除 1:有效)',
`create Time` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`friendlinkId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COMMENT='陈若楠 友情链接表';
-- ----------------------------
-- Records of crn_friendlinks
-- ----------------------------
-- ----------------------------
-- Table structure for `crn_goods`
-- ----------------------------
DROP TABLE IF EXISTS `crn_goods`;
CREATE TABLE `crn_goods` (
`goodsId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`goodsSn` varchar(20) NOT NULL COMMENT '商品编号',
`productNo` varchar(20) NOT NULL COMMENT '商品货号',
`goodsName` varchar(200) NOT NULL COMMENT '商品名称',
` goodsImg` varchar(150) NOT NULL COMMENT '商品图片',
`shopId` int(11) NOT NULL COMMENT '店铺ID',
`marketPrice` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '市场价',
`shopPrice` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '店铺价',
`warnStock` int(11) NOT NULL COMMENT '预警库存',
`goodsStock` int(11) NOT NULL COMMENT '商品总库存',
`goodsUnit` char(10) NOT NULL COMMENT '单位',
`goodsTips` text COMMENT '促销信息',
`isSale` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否上架(0:不上架 1:上架)',
`isBest` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否精品(0:否 1:是)',
`isHot` tinyint(4) NOT NULL COMMENT '是否热销产品(0:否 1:是)',
`isNew` tinyint(4) NOT NULL COMMENT '是否新品(0:否 1:是)',
`isRecom` tinyint(4) DEFAULT NULL COMMENT '是否推荐(0:否 1:是)',
`goodsCatIdPath` varchar(255) DEFAULT NULL COMMENT '商品分类ID路径(catId1_catId2_catId3)',
`goodsCatId` int(11) NOT NULL COMMENT '最后一级商品分类ID',
`shopCatId1` int(11) NOT NULL COMMENT '门店商品分类第一级ID',
`shopCatId2` int(11) NOT NULL COMMENT '门店商品第二级分类ID',
`brandId` int(11) DEFAULT NULL COMMENT '品牌Id',
`goodsDesc` text NOT NULL COMMENT '商品描述',
`goodsStatus` tinyint(4) NOT NULL COMMENT '商品状态(-1:违规 0:未审核 1:已审核)',
`saleNum` int(11) NOT NULL COMMENT '总销售量',
`saleTime` datetime NOT NULL COMMENT '上架时间',
`visitNum` int(11) DEFAULT NULL COMMENT '访问数',
`appraiseNum` int(11) DEFAULT NULL COMMENT '评价数',
`isSpec` tinyint(4) NOT NULL COMMENT '是否有规格(0:没有 1:有)',
`gallery` text COMMENT '商品相册',
`goodsSeoKeywords` varchar(200) DEFAULT NULL COMMENT '商品SEO关键字',
`illgalRemarks` varchar(255) DEFAULT NULL COMMENT '状态说明(一般用于说明拒绝原因)',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志(-1:删除 1:有效)',
`createTime` datetime NOT NULL COMMENT '创建时间',
`goodsType` tinyint(4) NOT NULL COMMENT '商品类型(0:商品类型 1:虚拟商品)',
`isDistribut` int(11) DEFAULT NULL COMMENT '是否分销商品(0:否 1:是)',
`commission` decimal(11,2) DEFAULT '0.00' COMMENT '分销佣金',
`isFreeShipping` tinyint(4) DEFAULT NULL COMMENT '是否包邮(0:否 1:是)',
`goodsSerachKeywords` text COMMENT '商品关键字搜索(该字段内容由系统生成,取商品名称+属性内容)',
`goodsVideo` varchar(150) DEFAULT NULL COMMENT '商品视频',
`costPrice` decimal(11,2) DEFAULT '0.00' COMMENT '成本价',
`goodsVideoThumb` varchar(150) DEFAULT NULL COMMENT '视频缩略图,未用',
`goodsSeoDesc` varchar(600) DEFAULT NULL COMMENT '商品SEO描述',
`shippingFeeType` tinyint(4) DEFAULT '1' COMMENT '计价方式(1:计件 2:重量 3:体积)',
`goodsWeight` decimal(11,2) DEFAULT '0.00' COMMENT '商品重量',
`goodsVolume` decimal(11,2) DEFAULT '0.00' COMMENT '商品体积',
`shopExpressId` int(11) DEFAULT NULL COMMENT '店铺快递公司ID',
`isPifa` tinyint(4) DEFAULT NULL COMMENT '是否属于批发商品(1:批发商品 0:不是批发商品)',
`collectNum` int(11) DEFAULT NULL COMMENT '收藏该商品的人数',
`canSaleStatus` tinyint(4) DEFAULT '1' COMMENT '是否可以批量上架(1:是 0:否。一般终于导入或者采集商品才会用到这个手段)',
PRIMARY KEY (`goodsId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='陈若楠 商品表';
-- ----------------------------
-- Records of crn_goods
-- ----------------------------
-- ----------------------------
-- Table structure for `crn_goods_appraises`
-- ----------------------------
DROP TABLE IF EXISTS `crn_goods_appraises`;
CREATE TABLE `crn_goods_appraises` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`shopId` int(11) NOT NULL DEFAULT '0' COMMENT '店铺ID',
`orderld` int(11) NOT NULL DEFAULT '0' COMMENT '订单ID',
`goodsld` int(11) NOT NULL DEFAULT '0' COMMENT '评价对象ID',
`goodsSpecld` int(11) NOT NULL DEFAULT '0' COMMENT '商品-规格ld',
`userld` int(11) NOT NULL DEFAULT '0' COMMENT '会员ID',
`goodsScore` int(11) NOT NULL DEFAULT '0' COMMENT '商品评价',
`serviceScore` int(11) NOT NULL DEFAULT '0' COMMENT '服务评分',
`timeScore` int(11) NOT NULL DEFAULT '0' COMMENT '失效评分',
`content` text NOT NULL COMMENT '评价内容',
`shopReply` text COMMENT '店铺回复',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COMMENT='陈若楠 商品评价表';
-- ----------------------------
-- Records of crn_goods_appraises
-- ----------------------------
-- ----------------------------
-- Table structure for `crn_goods_attributes`
-- ----------------------------
DROP TABLE IF EXISTS `crn_goods_attributes`;
CREATE TABLE `crn_goods_attributes` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`shopld` int(11) NOT NULL COMMENT '店铺ID',
`goodsld` int(11) NOT NULL COMMENT '商品ID',
`arrrld` text NOT NULL COMMENT '属性值',
`create Time` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COMMENT='陈若楠 商品属性表';
-- ----------------------------
-- Records of crn_goods_attributes
-- ----------------------------
-- ----------------------------
-- Table structure for `crn_goods_cats`
-- ----------------------------
DROP TABLE IF EXISTS `crn_goods_cats`;
CREATE TABLE `crn_goods_cats` (
`catId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`parentId` int(11) NOT NULL COMMENT '父ID',
`catName` varchar(20) NOT NULL COMMENT '分类名称',
`isShow` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否显示(0:隐藏 1:显示)',
`isFloor` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否显示楼层(0:不显示 1:显示)',
`catSort` int(11) NOT NULL COMMENT '排序号',
`dataFlag` tinyint(4) NOT NULL COMMENT '删除标志(1:有效 -1:删除)',
`createTime` datetime NOT NULL COMMENT '建立时间',
`commissionRate` decimal(11,2) DEFAULT '-1.00' COMMENT '商品佣金比例(-1代表使用上级父类的佣金设置)',
`cating` varchar(150) DEFAULT NULL COMMENT '分类图片',
`aubTitle` varchar(150) DEFAULT NULL COMMENT '二级标题',
`simpleName` varchar(20) NOT NULL COMMENT '移动端商品名称',
`seoTitle` varchar(200) NOT NULL COMMENT '分类SEO标题',
`seoKeywords` varchar(200) NOT NULL COMMENT '分类SEO关键字',
`seoDes` varchar(200) NOT NULL COMMENT '分类SEO描述',
`catListTheme` varchar(200) NOT NULL DEFAULT 'goods_list' COMMENT '电脑端商品列表模板名',
`detailTheme` varchar(200) NOT NULL DEFAULT 'goods_detail' COMMENT '电脑端商品详情模板名',
`mobileCatListTheme` varchar(200) NOT NULL DEFAULT 'goods_list' COMMENT '移动端商品列表模板名',
`mobileDetailTheme` varchar(200) NOT NULL DEFAULT 'goods_detail' COMMENT '移动端商品详情模板名',
`wechatCatListTheme` varchar(200) NOT NULL DEFAULT 'goods_list' COMMENT '微信端商品列表模板名',
`wechatDetailTheme` varchar(200) NOT NULL DEFAULT 'goods_detail' COMMENT '微信端商品详情模板名',
`showWay` tinyint(4) DEFAULT NULL COMMENT '移动端列表显示方式(0:一行两个 1:一行一个)',
PRIMARY KEY (`catId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='陈若楠 商品分类表';
-- ----------------------------
-- Records of crn_goods_cats
-- ----------------------------
-- ----------------------------
-- Table structure for `crn_goods_consult`
-- ----------------------------
DROP TABLE IF EXISTS `crn_goods_consult`;
CREATE TABLE `crn_goods_consult` (
`id` int(10) unsigned NOT NULL COMMENT '自增ID',
`goodsld` int(10) unsigned NOT NULL COMMENT '商品ID',
`userld` int(10) unsigned DEFAULT NULL COMMENT '咨询人ID',
`consultType` tinyint(3) unsigned DEFAULT NULL COMMENT '咨询类型',
`consultContent` varchar(500) NOT NULL COMMENT '咨询内容',
`create Time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
`reply` varchar(255) NOT NULL COMMENT '商家回复内容',
`reply Time` datetime DEFAULT NULL COMMENT '回复时间',
`dataFlag` tinyint(4) DEFAULT '1' COMMENT '有效时间(1:有效 -1:删除)',
`isShow` tinyint(4) DEFAULT '1' COMMENT '是否显示(1:显示 0:不显示)',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COMMENT='陈若楠 商品咨询表';
-- ----------------------------
-- Records of crn_goods_consult
-- ----------------------------
-- ----------------------------
-- Table structure for `crn_goods_scores`
-- ----------------------------
DROP TABLE IF EXISTS `crn_goods_scores`;
CREATE TABLE `crn_goods_scores` (
`scoreId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`goodsId` int(11) NOT NULL COMMENT '商品ID',
`shopId` int(11) NOT NULL COMMENT '店铺ID',
`totalScore` int(11) NOT NULL COMMENT '总评分',
`totalUsers` int(11) NOT NULL COMMENT '总评评分用户数',
`goodsScore` int(11) NOT NULL COMMENT '商品评分',
`goodsUsers` int(11) NOT NULL COMMENT '商品评分用户数',
`serviceScore` int(11) NOT NULL COMMENT '服务评分',
`serviceUsers` int(11) NOT NULL COMMENT '服务评分用户数',
`timeScore` int(11) NOT NULL COMMENT '时效评分',
`timeUsers` int(11) NOT NULL COMMENT '时效评分用户数',
PRIMARY KEY (`scoreId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='陈若楠 商品评分表';
-- ----------------------------
-- Records of crn_goods_scores
-- ----------------------------
-- ----------------------------
-- Table structure for `crn_goods_specs`
-- ----------------------------
DROP TABLE IF EXISTS `crn_goods_specs`;
CREATE TABLE `crn_goods_specs` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`shopId` int(11) NOT NULL COMMENT '店铺ID',
`goodsId` int(11) NOT NULL COMMENT '商品ID',
`productNo` varchar(20) NOT NULL COMMENT '商品货号',
`specIds` varchar(255) NOT NULL COMMENT '规格ID格式(例如:specId:specId:specId:specId:specId)',
`marketPrice` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '市场价',
`specPrice` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '商品价',
`specStock` int(11) NOT NULL COMMENT '库存',
`warnStock` int(11) NOT NULL COMMENT '预警库存',
`saleNum` int(11) NOT NULL COMMENT '销量',
`isDefault` tinyint(4) DEFAULT NULL COMMENT '默认规格(1:默认规格 0:非默认规格)',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效状态(1:有效 -1:无效)',
`specWeight` decimal(11,2) DEFAULT '0.00' COMMENT '商品重量',
`specVolume` decimal(11,2) DEFAULT '0.00' COMMENT '商品体积',
`costPrice` decimal(11,2) DEFAULT '0.00' COMMENT '成本价',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='陈若楠 商品规格表';
-- ----------------------------
-- Records of crn_goods_specs
-- ----------------------------
-- ----------------------------
-- Table structure for `crn_goods_virtuals`
-- ----------------------------
DROP TABLE IF EXISTS `crn_goods_virtuals`;
CREATE TABLE `crn_goods_virtuals` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`shopld` int(11) NOT NULL COMMENT '店铺ID',
`goodsld` int(11) NOT NULL COMMENT '商品ID',
`cardNo` varchar(20) NOT NULL COMMENT '卡券号',
`cardPwd` varchar(20) NOT NULL COMMENT '卡券密码',
`orderld` int(11) NOT NULL DEFAULT '0' COMMENT '订单ID',
`orderNo` varchar(20) DEFAULT NULL COMMENT '订单号',
`isUse` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否使用(0:未使用 1:已下单)',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效状态',
`create Time` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COMMENT='陈若楠 虚拟商品表';
-- ----------------------------
-- Records of crn_goods_virtuals
-- ----------------------------
-- ----------------------------
-- Table structure for `crn_home_menus`
-- ----------------------------
DROP TABLE IF EXISTS `crn_home_menus`;
CREATE TABLE `crn_home_menus` (
`menuId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`parentId` int(11) NOT NULL COMMENT '父ID',
`menuName` varchar(100) NOT NULL COMMENT '菜单名称',
`menuUrl` varchar(100) NOT NULL COMMENT '菜单url',
`menuOtherUrl` text COMMENT '关联url',
`menuType` tinyint(4) NOT NULL COMMENT '菜单类型(0:用户中心 1:商家中心)',
`isShow` tinyint(4) DEFAULT NULL COMMENT '是否显示(0:隐藏 1:显示)',
`menuSort` int(11) NOT NULL COMMENT '菜单排序',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效状态(1:有效 -1:无效)',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
`menuMark` varchar(50) DEFAULT NULL COMMENT '菜单所属插件的名称,方便卸载插件时删除菜单',
PRIMARY KEY (`menuId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='陈若楠 前台菜单表';
-- ----------------------------
-- Records of crn_home_menus
-- ----------------------------
-- ----------------------------
-- Table structure for `crn_hooks`
-- ----------------------------
DROP TABLE IF EXISTS `crn_hooks`;
CREATE TABLE `crn_hooks` (
`hookld` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`name` varchar(40) NOT NULL COMMENT '钩子名称',
`hookRemarks` text NOT NULL COMMENT '钩子描述',
`hookType` tinyint(1) NOT NULL DEFAULT '1' COMMENT '钩子类型(1:插件钩子)',
`update Time` datetime NOT NULL COMMENT '修改时间',
`addons` text NOT NULL COMMENT '所属插件【有哪些插件用到这个钩子】',
PRIMARY KEY (`hookld`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='陈若楠 插件钩子说明表';
-- ----------------------------
-- Records of crn_hooks
-- ----------------------------
-- ----------------------------
-- Table structure for `crn_informs`
-- ----------------------------
DROP TABLE IF EXISTS `crn_informs`;
CREATE TABLE `crn_informs` (
`informId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`inform Targetld` int(11) NOT NULL COMMENT '举报人ID',
`goodId` int(11) NOT NULL COMMENT '被举报商品ID',
`shopId` int(11) NOT NULL COMMENT '被举报店铺ID',
`inform Type` int(11) NOT NULL COMMENT '举报分类ID',
`informContent` text COMMENT '举报内容',
`informAnnex` text NOT NULL COMMENT '图片路径',
`inform Time` datetime NOT NULL COMMENT '举报时间',
`inform Status` tinyint(4) NOT NULL COMMENT '举报类型(1:产品质量问题 2:出售禁售品)',
`respondContent` text COMMENT '回应内容',
`finalHandleStaffld` int(11) DEFAULT NULL COMMENT '处理这ID',
`finalHandle Time` datetime DEFAULT NULL COMMENT '处理时间',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效标志(1:有效 -1:删除)',
PRIMARY KEY (`informId`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='陈若楠 商品举报表';
-- ----------------------------
-- Records of crn_informs
-- ----------------------------
-- ----------------------------
-- Table structure for `crn_invoices`
-- ----------------------------
DROP TABLE IF EXISTS `crn_invoices`;
CREATE TABLE `crn_invoices` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
`invoiceHead` varchar(255) NOT NULL COMMENT '发票抬头',
`invoiceCode` varchar(255) NOT NULL COMMENT '纳税人识别号',
`userld` int(10) unsigned NOT NULL COMMENT '用户id',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '数据有效标记(1:有效-1:无效)',
`createTime` datetime NOT NULL COMMENT '数据创建时间',
`invoiceType` tinyint(4) DEFAULT '0' COMMENT '发票类型(1:专票 0:普票)',
`invoiceAddr` varchar(300) DEFAULT NULL COMMENT '专票注册地址',
`invoicePhoneNumber` varchar(100) DEFAULT NULL COMMENT '专票注册电话',
`invoiceBankName` varchar(100) DEFAULT NULL COMMENT '专票开户银行',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='陈若楠 发票表';
-- ----------------------------
-- Records of crn_invoices
-- ----------------------------
-- ----------------------------
-- Table structure for `crn_log_moneys`
-- ----------------------------
DROP TABLE IF EXISTS `crn_log_moneys`;
CREATE TABLE `crn_log_moneys` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`targetType` tinyint(4) NOT NULL DEFAULT '0' COMMENT '用户类型(0:用户 1:商家)',
`targetId` int(11) NOT NULL DEFAULT '0' COMMENT '用户/商家ID',
`dataId` int(11) NOT NULL DEFAULT '0' COMMENT '数据记录ID(1:交易订单 2:积分支出)',
`dataSrc` varchar(20) NOT NULL DEFAULT '0' COMMENT '流水来源(1:交易订单 2:订单结算 3:提现申请 4:退款订单)',
`remark` text NOT NULL COMMENT '备注(N/A)',
`moneyType` tinyint(4) NOT NULL DEFAULT '1' COMMENT '流水标志(1:收入 0:支出)',
`money` decimal(11,2) NOT NULL COMMENT '金额',
`tradeNo` varchar(100) DEFAULT NULL COMMENT '外部流水号(例如微信支付,支付宝支付的交易流水号)',
`payType` varchar(20) NOT NULL DEFAULT '0' COMMENT '支付类型(支付来源代码,和支付方式对应代码)',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效状态(1:有效 -1:删除)',
`create Time` datetime NOT NULL COMMENT '创建时间',
`giveMoney` decimal(11,2) DEFAULT NULL COMMENT '记录充值送的金额',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='陈若楠 资金流水表';
-- ----------------------------
-- Records of crn_log_moneys
-- ----------------------------
-- ----------------------------
-- Table structure for `crn_log_operates`
-- ----------------------------
DROP TABLE IF EXISTS `crn_log_operates`;
CREATE TABLE `crn_log_operates` (
`operateId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`staffId` int(11) NOT NULL DEFAULT '0' COMMENT '职员ID',
`operate Time` datetime NOT NULL COMMENT '操作时间',
`menuId` int(11) NOT NULL COMMENT '所属菜单ID',
`operateDesc` varchar(255) NOT NULL COMMENT '操作说明',
`operateUrl` varchar(255) NOT NULL COMMENT '操作链接地址',
`content` longtext COMMENT '请求内容',
`operateIP` varchar(20) DEFAULT NULL COMMENT '操作IP',
PRIMARY KEY (`operateId`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='陈若楠 操作记录表';
-- ----------------------------
-- Records of crn_log_operates
-- ----------------------------