'string', 'status' => 'string', 'started_at' => 'datetime', 'ended_at' => 'datetime', 'duration_minutes' => 'integer', 'cost' => 'decimal:2', ]; } public function user(): BelongsTo { return $this->belongsTo(User::class); } public function machine(): BelongsTo { return $this->belongsTo(Machine::class); } public function booking(): BelongsTo { return $this->belongsTo(Booking::class); } public function machineCommand(): BelongsTo { return $this->belongsTo(MachineCommand::class); } }