commit 12.01
This commit is contained in:
25
app/Models/Service.php
Normal file
25
app/Models/Service.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
class Service extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'description',
|
||||
'duration_minutes',
|
||||
'price',
|
||||
'is_active'
|
||||
];
|
||||
|
||||
// Связь с бронированиями
|
||||
public function bookings()
|
||||
{
|
||||
return $this->hasMany(Booking::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user