table('member_tj',array('id' => true,'primary_key' => ['id'],'engine'=>'InnoDB','comment'=>'会员统计记录')); $table->addColumn('create_time', 'integer', array('limit' => 10,'signed' => false, 'default' => 0, 'comment' => '创建时间')) ->addColumn('remark', 'string',array('limit' => 255,'default'=>'','comment'=>'备注')) ->addColumn('ftype', 'integer',array('limit' => 10,'default'=>0,'comment'=>'1:日,2:周,3:月')) ->addColumn('values', 'integer',array('limit' => 11,'signed'=>false,'default'=>0,'comment'=>'统计值')) ->addColumn('tj_time', 'datetime', array('comment' => '统计时间')) ->create(); } }