['type' => 'uBigint', 'title' => '用户id'], 'product_id' => ['type' => 'uBigint', 'title' => '产品id'], 'product_version' => ['type' => 'string_20', 'title' => '产品版本'], 'type' => ['type' => 'uBigint', 'title' => '0 下载 1 安装 2 卸载 3 运行'], 'statistics_flag' => ['type' => 'string_60', 'title' => '软件标志', 'is_null' => 1], 'tag' => ['type' => 'string_100', 'title' => '点击的标签,可以统计点击次数', 'is_null' => 1], 'windows_uuid' => ['type' => 'string_100', 'title' => '系统唯一码', 'is_null' => 0], 'os_platform' => ['type' => 'string_20', 'title' => '平台系统 windows,linux,android,ios,mac', 'is_null' => 0], 'os_version' => ['type' => 'string_60', 'title' => '平台系统版本'], 'ip' => ['type' => 'string_200', 'title' => 'IP地址'], 'cpu' => ['type' => 'string_20', 'title' => 'cpu信息32位,64位'], 'from' => ['type' => 'string', 'title' => 'refer来源'], 'year' => ['type' => 'integer', 'title' => '年'], 'month' => ['type' => 'integer', 'title' => '月'], 'day' => ['type' => 'integer', 'title' => '日'], ]; } /** * 初始化内容 */ public function init() { } /** * Run the database seeds. * * @return void */ public function run() { $this->schema = 'user_use_log'; $this->title = '用户日志表'; $this->start(); } }