Authored by wuxiao

模型修改

... ... @@ -38,11 +38,11 @@ class Room extends \yii\db\ActiveRecord
public function rules()
{
return [
[['room_id', 'master_id', 'app', 'starting_time', 'living', 'status', 'create_time', 'update_time'], 'integer'],
[['best', 'vest'], 'string'],
[['room_id', 'master_id', 'starting_time', 'best', 'vest', 'living', 'status', 'create_time', 'update_time'], 'integer'],
[['title', 'watermark'], 'string', 'max' => 100],
[['secret'], 'string', 'max' => 50],
[['pic'], 'string', 'max' => 255],
[['app', 'secret'], 'string', 'max' => 50],
[['pic', 'background_pic'], 'string', 'max' => 255],
[['room_id'], 'unique'],
];
}
... ...
... ... @@ -34,8 +34,6 @@ class RoomQchannel extends \yii\db\ActiveRecord
[['room_id', 'create_time', 'update_time'], 'integer'],
[['downstream_address'], 'string'],
[['channel_id', 'upstream_address'], 'string', 'max' => 255],
[['create_time', 'update_time'], 'default', 'value' => time()],
[['create_time', 'update_time'], 'required'],
];
}
... ...
... ... @@ -38,9 +38,10 @@ class Video extends \yii\db\ActiveRecord
public function rules()
{
return [
[['app', 'task_id', 'live_start_time', 'live_end_time', 'master_id', 'room_id', 'status', 'like_num', 'audience_num', 'replay_num', 'create_time', 'update_time'], 'integer'],
[['task_id', 'live_start_time', 'live_end_time', 'master_id', 'room_id', 'status', 'like_num', 'audience_num', 'replay_num', 'create_time', 'update_time'], 'integer'],
[['title', 'live_title'], 'string', 'max' => 100],
[['pic', 'url'], 'string', 'max' => 255],
[['app'], 'string', 'max' => 50],
];
}
... ...
... ... @@ -37,13 +37,11 @@ class Room extends \yii\db\ActiveRecord
public function rules()
{
return [
[['room_id', 'master_id', 'app', 'starting_time', 'living', 'status', 'create_time', 'update_time'], 'integer'],
[['best', 'vest'], 'string'],
[['room_id', 'master_id', 'starting_time', 'best', 'vest', 'living', 'status', 'create_time', 'update_time'], 'integer'],
[['title', 'watermark'], 'string', 'max' => 100],
[['secret'], 'string', 'max' => 50],
[['pic'], 'string', 'max' => 255],
[['create_time', 'update_time'], 'default', 'value' => time()],
[['create_time', 'update_time'], 'required'],
[['app', 'secret'], 'string', 'max' => 50],
[['pic', 'background_pic'], 'string', 'max' => 255],
[['room_id'], 'unique'],
];
}
... ...
... ... @@ -34,8 +34,6 @@ class RoomQchannel extends \yii\db\ActiveRecord
[['room_id', 'create_time', 'update_time'], 'integer'],
[['downstream_address'], 'string'],
[['channel_id', 'upstream_address'], 'string', 'max' => 255],
[['create_time', 'update_time'], 'default', 'value' => time()],
[['create_time', 'update_time'], 'required'],
];
}
... ...
... ... @@ -41,9 +41,10 @@ class Video extends \yii\db\ActiveRecord
public function rules()
{
return [
[['app', 'task_id', 'live_start_time', 'live_end_time', 'master_id', 'room_id', 'status', 'like_num', 'audience_num', 'replay_num', 'create_time', 'update_time'], 'integer'],
[['task_id', 'live_start_time', 'live_end_time', 'master_id', 'room_id', 'status', 'like_num', 'audience_num', 'replay_num', 'create_time', 'update_time'], 'integer'],
[['title', 'live_title'], 'string', 'max' => 100],
[['pic', 'url'], 'string', 'max' => 255],
[['app'], 'string', 'max' => 50],
];
}
... ...