'integer', 'start_at' => 'datetime', 'end_at' => 'datetime', ]; /** * Get the advertisement associated with this assignment. */ public function advertisement() { return $this->belongsTo(Advertisement::class); } /** * Get the machine associated with this assignment. */ public function machine() { return $this->belongsTo(Machine::class); } }