<?php

namespace App\Modules\OfficialAccount\Models;

use Illuminate\Database\Eloquent\Model;

class CustomSendStats extends Model
{
    protected $tables = 'custom_send_stats';

    protected $fillable = ['distribution_channel_id','date','push_user_num','click_num','amount','success_pay_num','success_pay_rate','from'];


    static function customSendStatsByChannelAndFrom($distribution_channel_id,$from)
    {
        
        return self::where(['distribution_channel_id'=>$distribution_channel_id,'from'=>$from])->first();
    
    }


}


