<?php
/*
 本代码由 口号帮 创建
 创建时间 2019-05-08 16:22:09
 技术支持 口号帮 
 严禁反编译、逆向等任何形式的侵权行为，违者将追究法律责任
*/

namespace App\Models;use Illuminate\Database\Eloquent\Model;use Illuminate\Database\Eloquent\SoftDeletes;class ChannelReduce extends Model{use SoftDeletes;protected $fillable=['channel_id','channel_code','channel_name','platform','distribute_template_id','distribute_template_name','distribute_page_id','distribute_page_name','reduce_type','reduce_rate','modifier_id','modifier_name'];public function channel(){return $this->belongsTo(Channel::class,'channel_code','channel_code');}public function template(){return $this->belongsTo(DistributeTemplate::class,'distribute_template_id','id');}public function page(){return $this->belongsTo(DistributePage::class,'distribute_page_id','id');}public function reduceRecord(){return $this->hasMany(ReduceRecord::class,'channel_reduce_id','id');}}
?>