add set scheduling api
This commit is contained in:
parent
bdb266746d
commit
98ae9bf088
20 changed files with 935 additions and 1 deletions
45
backend/app/Schedule/ScheduleAssignmentModel.php
Normal file
45
backend/app/Schedule/ScheduleAssignmentModel.php
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
|
||||
namespace App\Schedule;
|
||||
|
||||
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property int $schedule_id
|
||||
* @property int $element_id
|
||||
* @property string $scheduled_date
|
||||
* @property int $position
|
||||
*
|
||||
* @method static Builder<static>|ScheduleAssignmentModel newModelQuery()
|
||||
* @method static Builder<static>|ScheduleAssignmentModel newQuery()
|
||||
* @method static Builder<static>|ScheduleAssignmentModel query()
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
#[Fillable([
|
||||
'schedule_id',
|
||||
'element_id',
|
||||
'scheduled_date',
|
||||
'position',
|
||||
])]
|
||||
class ScheduleAssignmentModel extends Model
|
||||
{
|
||||
protected $table = 'schedule_assignments';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* @return array<string, string>
|
||||
*/
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'schedule_id' => 'integer',
|
||||
'element_id' => 'integer',
|
||||
'position' => 'integer',
|
||||
];
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue