<?php

namespace App\Models\Agency;

use Illuminate\Database\Eloquent\Model;

class AgencySalesTarget extends Model
{
    protected $fillable = [
        'agency_id',
        'product_type_id',
        'target_period',
        'target_year',
        'target_month',
        'target_type',
        'target_value',
    ];

    public function agency()
    {
        return $this->belongsTo(Agency::class);
    }

    public function productType()
    {
        return $this->belongsTo(\App\Models\Product\ProductType::class);
    }
}
