add assignment completion api
This commit is contained in:
parent
916f070455
commit
350d2ec0b7
11 changed files with 281 additions and 16 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace App\Schedule;
|
||||
|
||||
use DateTimeImmutable;
|
||||
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
|
@ -15,6 +16,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|||
* @property list<string> $element_path
|
||||
* @property string $scheduled_date
|
||||
* @property int $position
|
||||
* @property DateTimeImmutable|null $completed_at
|
||||
* @property-read ScheduleModel $schedule
|
||||
*
|
||||
* @method static Builder<static>|ScheduleAssignmentModel newModelQuery()
|
||||
|
|
@ -30,6 +32,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|||
'element_path',
|
||||
'scheduled_date',
|
||||
'position',
|
||||
'completed_at',
|
||||
])]
|
||||
class ScheduleAssignmentModel extends Model
|
||||
{
|
||||
|
|
@ -46,6 +49,7 @@ class ScheduleAssignmentModel extends Model
|
|||
'schedule_id' => 'integer',
|
||||
'element_path' => 'array',
|
||||
'position' => 'integer',
|
||||
'completed_at' => 'immutable_datetime',
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue