<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Program extends Model {
    protected $fillable=['organization_id','name','category','pic_member_id','target','start_date','due_date','budget','realization','progress','status','public_visible','aggregate_to_main','notes'];
    protected $casts=['start_date'=>'date','due_date'=>'date','public_visible'=>'boolean','aggregate_to_main'=>'boolean'];
    public function organization(){ return $this->belongsTo(Organization::class); }
    public function pic(){ return $this->belongsTo(Member::class,'pic_member_id'); }
}
