table('explore_experience', array('id' => true, 'primary_key' => ['id'], 'engine' => 'InnoDB', 'comment' => '探秘体验表')); $table->addColumn('types', 'integer',array('limit' => 2, 'signed' => false, 'default'=> 1,'comment'=>'类型1探秘,2体验')) ->addColumn('external_url', 'string',array('limit' => 255,'default'=>'','comment'=>'视频外部链接')) ->addColumn('ali_url', 'string',array('limit' => 255,'default'=>'','comment'=>'视频阿里链接')) ->addColumn('contents', 'text',array('comment'=>'富文本内容')) ->addColumn('is_delete', 'integer',array('limit' => 4, 'signed' => false, 'default'=> 0,'comment'=>'是否删除0:可用,1:禁用')) ->addColumn('create_time', 'integer', array('limit' => 10,'signed' => false, 'default' => 0, 'comment' => '创建时间')) ->addColumn('update_time', 'integer', array('limit' => 10,'signed' => false, 'default' => 0, 'comment' => '更新时间')) ->create(); } }