24 lines
1.2 KiB
SQL
24 lines
1.2 KiB
SQL
/*==============================================================*/
|
|
/* Database name: sg_gamedb */
|
|
/* DBMS name: MySQL 5.5.17 */
|
|
/* Created on: 2014-10-16 10:00:00 */
|
|
/*==============================================================*/
|
|
|
|
create database if not exists statistics CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
|
use statistics;
|
|
|
|
CREATE TABLE IF NOT EXISTS `remain` (
|
|
id int unsigned AUTO_INCREMENT COMMENT '自增id',
|
|
Date date NOT NULL COMMENT '日期',
|
|
AppId int unsigned NOT NULL DEFAULT '0' COMMENT 'AppId',
|
|
ServerId int unsigned NOT NULL DEFAULT '0' COMMENT 'ServerId',
|
|
Register int unsigned NOT NULL DEFAULT '0' COMMENT '注册',
|
|
SecondRemain int unsigned NOT NULL DEFAULT '0' COMMENT '次日留存',
|
|
ThirdRemain int unsigned NOT NULL DEFAULT '0' COMMENT '三日留存',
|
|
SeventhRemain int unsigned NOT NULL DEFAULT '0' COMMENT '七日留存',
|
|
FourteenthRemain int unsigned NOT NULL DEFAULT '0' COMMENT '十四日留存',
|
|
ThirtiethRemain int unsigned NOT NULL DEFAULT '0' COMMENT '三十日留存',
|
|
PRIMARY KEY (id),
|
|
KEY `Date` (`Date`)
|
|
)ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='留存';
|