mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 16:31:33 +02:00
23 lines
411 B
PHP
23 lines
411 B
PHP
<?php namespace App\Models;
|
|
|
|
class Timesheet extends Eloquent
|
|
{
|
|
public $timestamps = true;
|
|
protected $softDelete = true;
|
|
|
|
public function account()
|
|
{
|
|
return $this->belongsTo('Account');
|
|
}
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('App\Models\User');
|
|
}
|
|
|
|
public function timesheet_events()
|
|
{
|
|
return $this->hasMany('TimeSheetEvent');
|
|
}
|
|
}
|