table('huoma_user', ['comment' => '活码用户表', 'engine'=>'InnoDB']); $table->addColumn('uid', 'integer',array('comment'=>'用户id','null' => true)) ->addColumn('phone', 'string',array('limit' => 11,'comment'=>'用户手机号','null' => true)) ->addColumn('addtime', 'timestamp',array('comment'=>'添加时间','default'=> 'CURRENT_TIMESTAMP')) ->addColumn('bind_code', 'integer',array('comment'=>'扫码后分配的二维码id','null' => true)) ->addColumn('mid', 'integer',array('comment'=>'分配子码的活码id','null' => true)) ->create(); } }