أُنشئ من Tokal/Test
Initial backend upload
هذا الالتزام موجود في:
34
app/Models/VenueTable.php
Normal file
34
app/Models/VenueTable.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
class VenueTable extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'venue_id',
|
||||
'seating_area_id',
|
||||
'name',
|
||||
'capacity',
|
||||
'is_active',
|
||||
];
|
||||
|
||||
public function venue()
|
||||
{
|
||||
return $this->belongsTo(Venue::class);
|
||||
}
|
||||
|
||||
public function seatingArea()
|
||||
{
|
||||
return $this->belongsTo(SeatingArea::class);
|
||||
}
|
||||
|
||||
public function assignments()
|
||||
{
|
||||
return $this->hasMany(ReservationTableAssignment::class);
|
||||
}
|
||||
}
|
||||
المرجع في مشكلة جديدة
حظر مستخدم