| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\models;
- use Yii;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;
- /**
- * This is the model class for table "{{%live_room}}".
- *
- * @property $id int(11) NOT NULL AUTO_INCREMENT,
- * @property $store_id int(11) DEFAULT NULL,
- * @property $name varchar(255) DEFAULT NULL COMMENT '',
- * @property $anchor_id int(11) NOT NULL COMMENT '主播ID',
- * @property $start_time int(11) DEFAULT NULL COMMENT '开始时间',
- * @property $end_time int(11) DEFAULT NULL COMMENT '结束时间',
- * @property $is_close int(1) DEFAULT '0' COMMENT '是否结束',
- * @property $look_num int(11) DEFAULT '0' COMMENT '观看人数',
- * @property $good_num int(11) DEFAULT '0' COMMENT '点赞人数',
- * @property $open_comment tinyint(1) NOT NULL DEFAULT 1 COMMENT '打开评论' ,
- * @property $open_good tinyint(1) NOT NULL DEFAULT 1 COMMENT '打开点赞' ,
- * @property $open_share tinyint(1) NOT NULL DEFAULT 1 COMMENT '打开分享' ,
- * @property $pic_url varchar(255) DEFAULT NULL COMMENT '直播封面',
- * @property $push_url varchar(255) DEFAULT NULL COMMENT '推流地址',
- * @property $weigui varchar(255) DEFAULT '' COMMENT '违规操作',
- * @property $goods_id varchar(255) DEFAULT NULL COMMENT '直播绑定商品',
- * @property $desc varchar(255) DEFAULT NULL COMMENT '直播间简介',
- * @property $address varchar(255) DEFAULT NULL COMMENT '位置',
- * @property $pre_play_time int(11) DEFAULT NULL COMMENT '预播开始时间,如果为null,则不是预播,如果为预播,开始直播时,该字段设为null',
- * @property $is_delete tinyint(1) DEFAULT '0' COMMENT '是否删除',
- * @property $off_time int(11) DEFAULT NULL COMMENT '主播没在直播状态开始时间',
- * @property $record text COMMENT '存放回放地址列表,json',
- * @property $created_at int(11) NULL DEFAULT 0 ,
- * @property $updated_at int(11) NULL DEFAULT 0 ,
- */
- class LiveRoom extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%live_room}}';
- }
- public function behaviors()
- {
- return [
- [
- // 自动更新创建和更新时间
- 'class' => TimestampBehavior::class,
- ]
- ];
- }
- }
|