2 Star 0 Fork 0

yanzhu728/wechatvideo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
wechatvideo.sql 4.77 KB
一键复制 编辑 原始数据 按行查看 历史
yanzhu728 提交于 2018-01-30 10:47 . 发红包抢红包
/*
Navicat MySQL Data Transfer
Source Server : mysql
Source Server Version : 50636
Source Host : localhost:3306
Source Database : wechatvideo
Target Server Type : MYSQL
Target Server Version : 50636
File Encoding : 65001
Date: 2018-01-30 10:46:57
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for comment
-- ----------------------------
DROP TABLE IF EXISTS `comment`;
CREATE TABLE `comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`vid` int(11) NOT NULL,
`content` varchar(255) DEFAULT NULL,
`comment_time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of comment
-- ----------------------------
-- ----------------------------
-- Table structure for grab_red_packets
-- ----------------------------
DROP TABLE IF EXISTS `grab_red_packets`;
CREATE TABLE `grab_red_packets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`vid` int(11) NOT NULL,
`grab_money` decimal(11,2) NOT NULL,
`grab_time` int(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of grab_red_packets
-- ----------------------------
-- ----------------------------
-- Table structure for recharge
-- ----------------------------
DROP TABLE IF EXISTS `recharge`;
CREATE TABLE `recharge` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`recharge_fee` decimal(11,2) NOT NULL COMMENT '0.0',
`recharge_time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of recharge
-- ----------------------------
-- ----------------------------
-- Table structure for red_packets
-- ----------------------------
DROP TABLE IF EXISTS `red_packets`;
CREATE TABLE `red_packets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`vid` int(11) NOT NULL,
`money` decimal(11,2) NOT NULL DEFAULT '0.00',
`sum` int(11) NOT NULL,
`title` varchar(255) DEFAULT NULL,
`remain_sum` decimal(11,2) DEFAULT NULL,
`remain` int(11) NOT NULL,
`red_time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of red_packets
-- ----------------------------
-- ----------------------------
-- Table structure for upvote
-- ----------------------------
DROP TABLE IF EXISTS `upvote`;
CREATE TABLE `upvote` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`vid` int(11) NOT NULL,
`like_time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of upvote
-- ----------------------------
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`openId` varchar(255) NOT NULL COMMENT '用户唯一身份识别 ID',
`nickname` varchar(255) NOT NULL COMMENT '昵称',
`avatar` varchar(255) DEFAULT NULL COMMENT '头像',
`gender` tinyint(2) DEFAULT NULL COMMENT '性别0女,1男',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user
-- ----------------------------
-- ----------------------------
-- Table structure for video
-- ----------------------------
DROP TABLE IF EXISTS `video`;
CREATE TABLE `video` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL COMMENT '用户id',
`path` varchar(255) NOT NULL COMMENT '视频保存路径',
`duration` decimal(11,2) DEFAULT NULL,
`video_time` int(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of video
-- ----------------------------
-- ----------------------------
-- Table structure for wallet
-- ----------------------------
DROP TABLE IF EXISTS `wallet`;
CREATE TABLE `wallet` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`uid` int(10) NOT NULL COMMENT '用户id',
`balance` decimal(16,2) DEFAULT '0.00' COMMENT '用户余额',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of wallet
-- ----------------------------
-- ----------------------------
-- Table structure for withdraw_deposit
-- ----------------------------
DROP TABLE IF EXISTS `withdraw_deposit`;
CREATE TABLE `withdraw_deposit` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`withdraw_fee` decimal(11,2) NOT NULL COMMENT '0.0',
`withdraw_time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of withdraw_deposit
-- ----------------------------
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/yanzhu728/wechatvideo.git
git@gitee.com:yanzhu728/wechatvideo.git
yanzhu728
wechatvideo
wechatvideo
master

搜索帮助