coursework tasks 1 to 10
This commit is contained in:
23
app/Models/Booking.php
Normal file
23
app/Models/Booking.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace App\Models;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
// бронирование ĸлиентов
|
||||
class Booking extends Model {
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'bookings';
|
||||
|
||||
protected $fillable = [
|
||||
'bookingnumber',
|
||||
'client_id',
|
||||
'employee_id',
|
||||
'service_id',
|
||||
'bookingdate',
|
||||
'starttime',
|
||||
'endtime',
|
||||
'status',
|
||||
'cancelledby',
|
||||
'cancelreason'
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user