Files
nutzwerte_fi4/app/Models/Projekte.php
T
2025-10-03 18:15:47 +02:00

35 lines
636 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Projekte extends Model
{
protected $fillable = [
'konto_id',
'auftraggeber_id',
'gutachter_id',
'offizieller_name',
'interner_name',
'beschreibung',
'erstellung',
'status',
];
public function auftraggeber()
{
return $this->belongsTo(Auftraggeber::class);
}
public function gutachter()
{
return $this->belongsTo(Gutachter::class);
}
public function allgemeinflaechens()
{
return $this->hasMany(Allgemeinflaechen::class);
}
}