belongsTo(Airflow::class); } /** * Связь с моделью DAG. */ public function dag() { return $this->belongsTo(dag::class); } /** * Связь с TaskInstance. */ public function taskInstances() { return $this->hasMany(TaskInstance::class); } /** * Связь с DAGEvent. */ public function events() { return $this->hasMany(dag_event::class); } }