<?php

//每日流水表
$sql['assetslog'] =<<<EOF
CREATE TABLE crazygod_log.`#table#` (
  `uid` int(11) DEFAULT NULL,
  `type` varchar(20) DEFAULT NULL,
  `num` bigint(20) DEFAULT NULL,
  `crease` varchar(4) DEFAULT NULL,
  `reason` varchar(255) DEFAULT NULL,
  `time` varchar(20) DEFAULT NULL,
  `last_num` varchar(20) DEFAULT '0',
  `rid` int(4) DEFAULT '0',
  `levelId` int(4) DEFAULT '0',
  `game_version` int(2) DEFAULT '1'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
EOF;
//每日活动流水表
$sql['act_assetslog'] =<<<EOF
CREATE TABLE crazygod_log.`#table#` (
  `aid` int(11) DEFAULT NULL,
  `uid` int(11) DEFAULT NULL,
  `type` varchar(20) DEFAULT NULL,
  `num` bigint(20) DEFAULT NULL,
  `crease` varchar(4) DEFAULT NULL,
  `reason` varchar(255) DEFAULT NULL,
  `time` varchar(20) DEFAULT NULL,
  `last_num` varchar(20) DEFAULT '0',
  `rid` int(4) DEFAULT '0',
  `levelId` int(4) DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
EOF;
//每日体力记录表 新增 金币、盾牌、钻石
$sql['today_spinslog'] =<<<EOF
CREATE TABLE crazygod_log.`#table#` (
  `uid` int(11) DEFAULT NULL,
  `num` bigint(20) DEFAULT NULL,
  `levelId` int(4) DEFAULT '0',
  `money` bigint(20) DEFAULT '0',
  `diamond` bigint(20) DEFAULT '0',
  `shield` bigint(20) DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
EOF;
return $sql;
