<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Project extends Model { protected $fillable=['code','name','client_id','manager_user_id','department_id','description','technology_stack','start_date','end_date','status','priority','health','budget_hours','confidentiality_level']; protected function casts():array{return ['start_date'=>'date','end_date'=>'date','budget_hours'=>'decimal:2'];} public function client(){return $this->belongsTo(Client::class);} public function members(){return $this->hasMany(ProjectMember::class);} public function tasks(){return $this->hasMany(Task::class);} }