发表于: 2018-01-04 20:51:12
1 443
今天完成的事
设计表格
/*
Navicat MySQL Data Transfer
Source Server : 阿里云
Source Server Version : 50720
Source Host : localhost:3306
Source Database : jujinrong
Target Server Type : MYSQL
Target Server Version : 50720
File Encoding : 65001
Date: 2018-01-04 21:15:58
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for t_bank
-- ----------------------------
DROP TABLE IF EXISTS `t_bank`;
CREATE TABLE `t_bank` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长银行ID',
`bank_name` varchar(20) DEFAULT NULL COMMENT '银行名称',
`pay_code` varchar(20) DEFAULT NULL COMMENT '支付代码',
`withdrawal_code` varchar(20) DEFAULT NULL COMMENT '提现代码',
`daily_quota` varchar(20) DEFAULT NULL COMMENT '日累计限额',
`single_quota` varchar(20) DEFAULT NULL COMMENT '单笔限额',
`logo` varchar(100) DEFAULT NULL COMMENT '银行LOGO Url',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`),
UNIQUE KEY `uniquePayCode` (`pay_code`) USING BTREE,
UNIQUE KEY `uniqueWithDrawalCode` (`withdrawal_code`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_bank
-- ----------------------------
-- ----------------------------
-- Table structure for t_constant
-- ----------------------------
DROP TABLE IF EXISTS `t_constant`;
CREATE TABLE `t_constant` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长常量ID',
`official_seal` varchar(11) DEFAULT NULL COMMENT '公章',
`invest_deadline_days` varchar(11) DEFAULT NULL COMMENT '投资到期消息提前天数',
`total_claims_warn_line` varchar(10) DEFAULT NULL COMMENT '总债权投满警戒线',
`credit_deadline_days` varchar(10) DEFAULT NULL COMMENT '债权到期提前天数',
`continue_invest_days` varchar(10) DEFAULT NULL COMMENT '续投提前天数',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_constant
-- ----------------------------
-- ----------------------------
-- Table structure for t_content
-- ----------------------------
DROP TABLE IF EXISTS `t_content`;
CREATE TABLE `t_content` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长内容ID',
`title` varchar(100) DEFAULT NULL COMMENT '标题',
`type` int(1) DEFAULT NULL COMMENT '类型(0推荐banner,1帮助中心,2关于我们)',
`img` varchar(100) DEFAULT NULL COMMENT '图片',
`status` bit(1) DEFAULT NULL COMMENT '状态(0草稿 1上线)',
`order` int(1) DEFAULT NULL COMMENT '图片在banner组中位置顺序',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) NOT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_content
-- ----------------------------
-- ----------------------------
-- Table structure for t_credit
-- ----------------------------
DROP TABLE IF EXISTS `t_credit`;
CREATE TABLE `t_credit` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '债权id自增长',
`code` varchar(10) DEFAULT NULL COMMENT '债权代号',
`creditor_name` varchar(20) DEFAULT NULL COMMENT '债权人名字',
`creditor_mobile` varchar(20) DEFAULT NULL COMMENT '债权人手机号',
`creditor_idno` varchar(20) DEFAULT NULL COMMENT '债权人身份证号',
`month_limit` int(11) DEFAULT NULL COMMENT '出借期限',
`begin_at` bigint(20) DEFAULT NULL COMMENT '出借日期',
`end_at` bigint(20) DEFAULT NULL COMMENT '到期日期',
`amount` varchar(15) DEFAULT NULL COMMENT '债权金额',
`not_match_amount` varchar(10) DEFAULT NULL COMMENT '待匹配总额',
`status` int(1) DEFAULT NULL COMMENT '状态(0未使用1使用中2已到期)',
`property` varchar(10) DEFAULT NULL COMMENT '债权性质',
`year_rate` varchar(5) DEFAULT NULL COMMENT '年利率',
`comment` varchar(100) DEFAULT NULL COMMENT '相关备注',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`),
UNIQUE KEY `uniqueCreditorIdno` (`creditor_idno`) USING BTREE,
KEY `indexCreditorName` (`creditor_name`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_credit
-- ----------------------------
-- ----------------------------
-- Table structure for t_identity
-- ----------------------------
DROP TABLE IF EXISTS `t_identity`;
CREATE TABLE `t_identity` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长实名认证ID',
`user_id` int(11) DEFAULT NULL COMMENT '用户ID',
`identity_status` int(1) DEFAULT NULL COMMENT '实名状态 0-未认证 1-已认证 2-已拒绝 3-已取消',
`refuse_reason` varchar(50) DEFAULT NULL COMMENT '拒绝理由(若审核未通过,则此字段不为null)',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_identity
-- ----------------------------
-- ----------------------------
-- Table structure for t_investment
-- ----------------------------
DROP TABLE IF EXISTS `t_investment`;
CREATE TABLE `t_investment` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长投资ID',
`u_pId` int(11) DEFAULT NULL COMMENT '用户产品ID',
`credit_id` int(11) DEFAULT NULL COMMENT '债权ID',
`signature_img_url` varchar(100) DEFAULT NULL COMMENT '用户签章图片URL',
`contract_idA` varchar(20) DEFAULT NULL COMMENT '出借合同编号',
`contract_idB` varchar(20) DEFAULT NULL COMMENT '债权协议/出借咨询与服务协议',
`contract
_idC` varchar(20) DEFAULT NULL COMMENT '授权委托书 - 出借确认和债权转让',
`contract
_idD` varchar(20) DEFAULT NULL COMMENT '授权委托书 - 催收及诉讼',
`contract
_idE` varchar(20) DEFAULT NULL COMMENT '出借本金确认书',
`card_no` varchar(20) DEFAULT NULL COMMENT '付款银行卡号',
`card_info` varchar(10) DEFAULT NULL COMMENT '付款银行',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`),
KEY `indexContract
IdA` (`contract_idA`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_investment
-- ----------------------------
-- ----------------------------
-- Table structure for t_manager
-- ----------------------------
DROP TABLE IF EXISTS `t_manager`;
CREATE TABLE `t_manager` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长理财经理D',
`number` int(10) DEFAULT NULL COMMENT '工号',
`name` varchar(10) DEFAULT NULL COMMENT '姓名',
`mobile` varchar(50) DEFAULT NULL COMMENT '手机号',
`status` int(1) DEFAULT NULL COMMENT '状态',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_manager
-- ----------------------------
-- ----------------------------
-- Table structure for t_message
-- ----------------------------
DROP TABLE IF EXISTS `t_message`;
CREATE TABLE `t_message` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长消息ID',
`user_id` int(11) DEFAULT NULL COMMENT '用户ID',
`u_pid` int(11) DEFAULT NULL COMMENT '用户产品关联表ID',
`title` varchar(50) DEFAULT NULL COMMENT '标题',
`type` int(1) DEFAULT NULL COMMENT '消息类型(0 投资成功 1 投资失败 2 即将到期 3 正在回款 4 回款成功 5 回款失败 6 公告消息)',
`person_type` int(1) DEFAULT NULL COMMENT '发送人群(0所有人 1认证投资人 2单个用户)',
`send_type` int(1) DEFAULT NULL COMMENT '发送类型(0定时发送1即时发送)',
`content` varchar(200) DEFAULT NULL COMMENT '正文',
`url` varchar(100) DEFAULT NULL COMMENT 'img(跳转图片,如果为空,则不跳转)',
`push_at` bigint(20) DEFAULT NULL COMMENT '推送时间',
`status` bit(1) DEFAULT NULL COMMENT '状态(0草稿1上线)',
`synchronize` bit(1) DEFAULT NULL COMMENT '是否同步',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_message
-- ----------------------------
-- ----------------------------
-- Table structure for t_module
-- ----------------------------
DROP TABLE IF EXISTS `t_module`;
CREATE TABLE `t_module` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长模块ID',
`parent_id` int(11) DEFAULT NULL COMMENT '父模块ID',
`module_name` varchar(10) DEFAULT NULL COMMENT '模块名',
`module_url` varchar(50) DEFAULT NULL COMMENT '模块对应url',
`module_type` bit(1) DEFAULT NULL COMMENT '模块类型(0 web 1 其他)',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_module
-- ----------------------------
-- ----------------------------
-- Table structure for t_product
-- ----------------------------
DROP TABLE IF EXISTS `t_product`;
CREATE TABLE `t_product` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '产品ID自增长',
`code` varchar(10) DEFAULT NULL COMMENT '产品代号',
`name` varchar(20) DEFAULT NULL COMMENT '产品名称',
`year_rate` varchar(50) DEFAULT NULL COMMENT '预计年化',
`pay_back_type` bit(1) DEFAULT NULL COMMENT '还款方式(0按月付息,到期还本;1到期一次性还本付息)',
`min_amount` varchar(50) DEFAULT NULL COMMENT '起投金额',
`time_limit_type` bit(1) DEFAULT NULL COMMENT '期限类型 (0:日 1:月)',
`limit` int(11) DEFAULT NULL COMMENT '理财期限',
`interest_begin_way` int(2) DEFAULT NULL COMMENT '起息方式(0.T+0;1.T+1;2.T+2)',
`details_img_url` varchar(100) DEFAULT NULL COMMENT '更多详情',
`tag` bit(1) DEFAULT NULL COMMENT '角标(0最新 1热门 2普通)',
`is_recommend` bit(1) DEFAULT NULL COMMENT '是否推荐',
`level` int(10) DEFAULT NULL COMMENT '推荐顺序',
`status` bit(1) DEFAULT NULL COMMENT '状态(0停售 1在售)',
`buy_limit` bit(1) DEFAULT NULL COMMENT '是否限购',
`limit_amount` varchar(20) DEFAULT NULL COMMENT '限购金额',
`comment` varchar(100) DEFAULT NULL COMMENT '备注(一百字以内)',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`),
KEY `uniqueCode` (`code`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_product
-- ----------------------------
-- ----------------------------
-- Table structure for t_repayment
-- ----------------------------
DROP TABLE IF EXISTS `t_repayment`;
CREATE TABLE `t_repayment` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长还款计划ID',
`user_id` int(11) DEFAULT NULL COMMENT '关联用户id',
`investment_id` int(11) DEFAULT NULL COMMENT '投资记录表ID',
`repayment_date` bigint(20) DEFAULT NULL COMMENT '还款日期',
`repayment_amount` varchar(20) DEFAULT NULL COMMENT '还款金额',
`status` bit(1) DEFAULT NULL COMMENT '还款状态(0 未还款 1 已还款)',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_repayment
-- ----------------------------
-- ----------------------------
-- Table structure for t_role
-- ----------------------------
DROP TABLE IF EXISTS `t_role`;
CREATE TABLE `t_role` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长角色ID',
`name` varchar(20) DEFAULT NULL COMMENT '角色名称',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_role
-- ----------------------------
-- ----------------------------
-- Table structure for t_sales
-- ----------------------------
DROP TABLE IF EXISTS `t_sales`;
CREATE TABLE `t_sales` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长销量ID',
`product_id` int(11) DEFAULT NULL COMMENT '关联产品ID',
`buy_person_sum` int(10) DEFAULT NULL COMMENT '购买总人数',
`buy_count` int(10) DEFAULT NULL COMMENT '购买总笔数',
`buy_sum_amount` varchar(15) DEFAULT NULL COMMENT '购买金额',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_sales
-- ----------------------------
-- ----------------------------
-- Table structure for t_suggestion
-- ----------------------------
DROP TABLE IF EXISTS `t_suggestion`;
CREATE TABLE `t_suggestion` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长意见ID',
`user_id` int(11) DEFAULT NULL COMMENT '关联用户id',
`content` varchar(500) DEFAULT NULL COMMENT '意见内容',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_suggestion
-- ----------------------------
-- ----------------------------
-- Table structure for t_trade
-- ----------------------------
DROP TABLE IF EXISTS `t_trade`;
CREATE TABLE `t_trade` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长交易ID',
`user_id` int(11) DEFAULT NULL COMMENT '关联用户id',
`product_id` int(11) DEFAULT NULL COMMENT '关联产品Id',
`investment_id` int(11) DEFAULT NULL COMMENT '投资记录表ID',
`transact_no` varchar(30) DEFAULT NULL COMMENT '交易流水号',
`amount` varchar(20) DEFAULT NULL COMMENT '交易金额',
`status` bit(1) DEFAULT NULL COMMENT '交易状态(0 失败 1 成功)',
`scene` bit(1) DEFAULT NULL COMMENT '交易类型 (0回款1付款)',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`),
UNIQUE KEY `uniqueTransactNo` (`transact_no`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_trade
-- ----------------------------
-- ----------------------------
-- Table structure for t_user
-- ----------------------------
DROP TABLE IF EXISTS `t_user`;
CREATE TABLE `t_user` (
`id` int(20) NOT NULL COMMENT '用户ID',
`user_id` varchar(20) DEFAULT NULL COMMENT '用户流水ID',
`role_Id` int(1) DEFAULT NULL COMMENT '角色ID',
`salt` varchar(100) DEFAULT NULL,
`login_psd` varchar(20) DEFAULT NULL COMMENT '登录密码',
`gesture_psd` varchar(100) DEFAULT NULL COMMENT '手势密码',
`trade_psd` int(10) DEFAULT NULL COMMENT '交易密码',
`adviser_no` varchar(20) DEFAULT NULL COMMENT '理财经理工号',
`mobile` varchar(20) DEFAULT NULL COMMENT '手机号',
`name` varchar(10) DEFAULT NULL COMMENT '真实姓名',
`email` varchar(20) DEFAULT NULL COMMENT '用户邮箱',
`address` varchar(50) DEFAULT NULL COMMENT '详细地址',
`id_no` varchar(20) DEFAULT NULL COMMENT '身份证号',
`identify_status` bit(1) DEFAULT NULL COMMENT '实名状态 0 未实名 1 已实名',
`img_positive_url` varchar(100) DEFAULT NULL COMMENT '身份证正面照片',
`img_reverse
_url` varchar(100) DEFAULT NULL COMMENT '身份证反面照片',
`default_card_id` int(11) DEFAULT NULL COMMENT '用户默认银行卡ID(如果没有则为-1)',
`total_principal` varchar(15) DEFAULT NULL COMMENT '总资产',
`total_interest` varchar(15) DEFAULT NULL COMMENT '累计收益',
`status` int(1) DEFAULT NULL COMMENT '账户状态 0冻结1正常',
`unread` int(3) DEFAULT NULL COMMENT '未读消息条数',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`),
UNIQUE KEY `uniqueAdviserNo` (`adviser_no`) USING BTREE,
UNIQUE KEY `uniqueMobile` (`mobile`) USING BTREE,
UNIQUE KEY `uniqueIdNo` (`id_no`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_user
-- ----------------------------
-- ----------------------------
-- Table structure for t_user_bank
-- ----------------------------
DROP TABLE IF EXISTS `t_user_bank`;
CREATE TABLE `t_user_bank` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长用户银行ID',
`user_id` varchar(20) DEFAULT NULL COMMENT '用户ID',
`bank_id` int(2) DEFAULT NULL COMMENT '银行ID',
`card_no` varchar(10) DEFAULT NULL COMMENT '银行卡卡号',
`card_city` varchar(200) DEFAULT NULL COMMENT '开户行城市',
`mobile` varchar(20) DEFAULT NULL COMMENT '预留手机号',
`url` varchar(100) DEFAULT NULL COMMENT '更新下载地址',
`status` int(1) DEFAULT NULL COMMENT '状态',
`is_force_update` bit(1) DEFAULT NULL COMMENT 'true代表强制更新,false代表不需要强制更新',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_user_bank
-- ----------------------------
-- ----------------------------
-- Table structure for t_user_product
-- ----------------------------
DROP TABLE IF EXISTS `t_user_product`;
CREATE TABLE `t_user_product` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长用户产品ID',
`user_id` int(11) DEFAULT NULL COMMENT '用户流水ID',
`product_id` int(2) DEFAULT NULL COMMENT '产品ID',
`card_no` varchar(10) DEFAULT NULL COMMENT '银行卡卡号',
`amount` varchar(20) DEFAULT NULL COMMENT '投资本金',
`interest_begin_at` bigint(20) DEFAULT NULL COMMENT '起息日',
`interest_end_at` bigint(20) DEFAULT NULL COMMENT '到息日',
`not_yet_interest` varchar(20) DEFAULT NULL COMMENT '未分配收益',
`already_interest` varchar(20) DEFAULT NULL COMMENT '已分配收益',
`investment_again_id` int(11) DEFAULT NULL COMMENT '续投记录Id',
`available` bit(1) DEFAULT NULL COMMENT '是否有效',
`status` int(1) DEFAULT NULL COMMENT '投资状态(0 已退出, 1 退出中 2 投资中,3已续投)',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_user_product
-- ----------------------------
-- ----------------------------
-- Table structure for t_version
-- ----------------------------
DROP TABLE IF EXISTS `t_version`;
CREATE TABLE `t_version` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长版本ID',
`title` varchar(20) DEFAULT NULL COMMENT '版本名称(如1.0.3)',
`title_number` int(2) DEFAULT NULL COMMENT '版本号',
`type` varchar(10) DEFAULT NULL COMMENT '类型(Android or IOS)',
`content` varchar(200) DEFAULT NULL COMMENT '版本更新内容',
`url` varchar(100) DEFAULT NULL COMMENT '更新下载地址',
`status` int(1) DEFAULT NULL COMMENT '状态',
`is_force_update` bit(1) DEFAULT NULL COMMENT 'true代表强制更新,false代表不需要强制更新',
`create_at` bigint(20) DEFAULT NULL COMMENT '创建时间',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`update_at` bigint(20) DEFAULT NULL COMMENT '更新时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_version
-- ----------------------------
SET FOREIGN_KEY_CHECKS=1;
收获
收获
明天完成的事
方案设计
评论