<?php

namespace App\Modules\PersonalOp\Models;

use Illuminate\Database\Eloquent\Model;
use DB;

class MediaPushUserDetail extends Model
{
    protected  $table = 'media_push_user_details';
    protected  $fillable = ['sort_no','is_send','media_push_user_id','status','send_time','media_push_record_id'];
    
    public static function update_media_push_record_id($send_time,$uids,$media_push_record_id) {
    	return self::whereIn('uid',$uids)->where('send_time',$send_time)->update(['media_push_record_id'=>$media_push_record_id]);
    }
    
}
