add set scheduling api

This commit is contained in:
Yisroel Baum 2026-08-10 20:05:53 +03:00
parent bdb266746d
commit 98ae9bf088
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
20 changed files with 935 additions and 1 deletions

View 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',
];
}
}