table('user') ->addColumn('act_source', 'integer',array('limit' => 10, 'default'=> 0,'comment'=>'用户活动来源 0-其他 1-渠道推广(后面活动再扩展2、3……)')) ->addColumn('act_source_id', 'integer',array('limit' => 10, 'default'=> 0,'comment'=>'用户活动来源id 如:渠道推广id')) ->addIndex(['act_source']) ->addIndex(['act_source_id']) ->save(); } }