/
ximain1
/
tpu-backend
Обзор
Документация
Войти
/
ximain1
/
tpu-backend
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
app/Models/ManeuverWork.php
56 строк
2 KB
Попехин Константин Сергеевич
Реализация заполнения таблицы с машинистами
31 дек 2025, 09:13
31 дек 2025, 09:13
2feb863
Код
Авторство
О чём код?
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * @property int $id * @property int $station_id * @property string $start_time * @property string $end_time * @property int $route_sheet_id * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property-read \App\Models\RouteSheet $route_sheet * @property-read \App\Models\Station $station * @method static \Database\Factories\ManeuverWorkFactory factory($count = null, $state = []) * @method static \Illuminate\Database\Eloquent\Builder<static>|ManeuverWork newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|ManeuverWork newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|ManeuverWork query() * @method static \Illuminate\Database\Eloquent\Builder<static>|ManeuverWork whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|ManeuverWork whereEndTime($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|ManeuverWork whereId($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|ManeuverWork whereRouteSheetId($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|ManeuverWork whereStartTime($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|ManeuverWork whereStationId($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|ManeuverWork whereUpdatedAt($value) * @property string $duration * @method static \Illuminate\Database\Eloquent\Builder<static>|ManeuverWork whereDuration($value) * @mixin \Eloquent */ class ManeuverWork extends Model { /** @use HasFactory<\Database\Factories\ManeuverWorkFactory> */ use HasFactory; public function station(): BelongsTo{ return $this->belongsTo(Station::class); } public function route_sheet(): BelongsTo{ return $this->belongsTo(RouteSheet::class); } protected $fillable = [ 'date', 'shift_id', 'station_id', 'route_sheet_id', 'duration', 'start_time', 'end_time' ]; }