Attainly/backend/app/Schedule/ScheduleModel.php

46 lines
966 B
PHP

<?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 $user_id
* @property int $set_id
* @property string $element_kind
* @property string $start_date
* @property string $target_date
*
* @method static Builder<static>|ScheduleModel newModelQuery()
* @method static Builder<static>|ScheduleModel newQuery()
* @method static Builder<static>|ScheduleModel query()
*
* @mixin \Eloquent
*/
#[Fillable([
'user_id',
'set_id',
'element_kind',
'start_date',
'target_date',
])]
class ScheduleModel extends Model
{
protected $table = 'schedules';
public $timestamps = false;
/**
* @return array<string, string>
*/
protected function casts(): array
{
return [
'user_id' => 'integer',
'set_id' => 'integer',
];
}
}