table('lecturer_company', ['comment' => '总后台讲师所属企业表', 'engine'=>'InnoDB']); $table->addColumn('name', 'string',array('comment'=>'企业名称','default'=> '')) ->addColumn('addtime', 'integer',array('comment'=>'添加时间','default'=> 0)) ->addColumn('root_id', 'integer',array('comment'=>'店面id','default'=> 0)) ->create(); $table = $this->table('lecturer', ['comment' => '总后台讲师表', 'engine'=>'InnoDB']); $table->addColumn('lecturer_company_id', 'integer',array('limit' => 11, 'comment'=>'讲师所属企业id')) ->addColumn('name', 'string',array('comment'=>'讲师名称','default'=> '')) ->addColumn('speaker_type', 'string',array('comment'=>'主讲类型','default'=> '')) ->addColumn('photo', 'string',array('comment'=>'形象照','default'=> '')) ->addColumn('poster', 'string',array('comment'=>'宣传海报','default'=> '')) ->addColumn('case', 'string',array('comment'=>'简介','default'=> '')) ->addColumn('addtime', 'integer',array('comment'=>'添加时间','default'=> 0)) ->addColumn('root_id', 'integer',array('comment'=>'店面id','default'=> 0)) ->addColumn('del', 'integer',array('comment'=>'删除 1删除','default'=> 0)) ->create(); $table = $this->table('broadcast', ['comment' => '总后台直播表', 'engine'=>'InnoDB']); $table->addColumn('lecturer_id', 'integer',array('limit' => 11, 'comment'=>'讲师id')) ->addColumn('name', 'string',array('comment'=>'直播名称','default'=> '')) ->addColumn('start_date', 'integer',array('comment'=>'直播开始时间','default'=> 0)) ->addColumn('end_date', 'integer',array('comment'=>'直播结束时间','default'=> 0)) ->addColumn('broadcast_type', 'integer',array('comment'=>'直播类型0普通直播,1威哥直播','default'=> 0)) ->addColumn('broadcast_platform', 'integer',array('comment'=>'直播类型0boss直播,1其他直播','default'=> 0)) ->addColumn('broadcast_url', 'string',array('comment'=>'直播连接','default'=> '')) ->addColumn('broadcast_cover', 'string',array('comment'=>'直播封面','default'=> '')) ->addColumn('addtime', 'integer',array('comment'=>'添加时间','default'=> 0)) ->addColumn('playback_cover', 'string',array('comment'=>'回放封面','default'=> '')) ->addColumn('playback_url', 'string',array('comment'=>'回放视频','default'=> '')) ->addColumn('root_id', 'integer',array('comment'=>'店面id','default'=> 0)) ->addColumn('del', 'integer',array('comment'=>'删除','default'=> 0)) ->addColumn('introduce', 'text', ['comment'=>'直播介绍']) ->addColumn('position', 'string',array('comment'=>'职位','default'=> '')) ->create(); $table = $this->table('activity_material', ['comment' => '总后台活动素材', 'engine'=>'InnoDB']); $table->addColumn('aid', 'integer',array('limit' => 11, 'comment'=>'活动id')) ->addColumn('url', 'string',array('comment'=>'素材地址','default'=> '')) ->addColumn('type', 'integer',array('comment'=>'素材类型0图,1视频','default'=> 0)) ->addColumn('root_id', 'integer',array('comment'=>'店面id','default'=> 0)) ->create(); $table = $this->table('activity'); $table->addColumn('introduce', 'text', ['comment'=>'操作内容']) ->update(); $table = $this->table('train_class'); $table->addColumn('lecturer_id', 'integer',array('limit' => 11, 'comment'=>'讲师id')) ->addColumn('introduce', 'text', ['comment'=>'课程亮点']) ->addColumn('imgs', 'text', ['comment'=>'精品课程宣传图片']) ->update(); $table = $this->table('activity_collor', ['comment' => '活动收藏', 'engine'=>'InnoDB']); $table->addColumn('aid', 'integer',array('limit' => 11, 'comment'=>'活动id')) ->addColumn('employee_id', 'integer',array('comment'=>'素材类型0图,1视频','default'=> 0)) ->addColumn('root_id', 'integer',array('comment'=>'店面id','default'=> 0)) ->addColumn('addtime', 'integer',array('comment'=>'收藏时间','default'=> 0)) ->addColumn('type', 'integer',array('comment'=>'0收藏 , 1报名','default'=> 0)) ->create(); } }