mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
27 lines
520 B
PHP
27 lines
520 B
PHP
<?php namespace App\Models;
|
|
|
|
use Eloquent;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class Timesheet extends Eloquent
|
|
{
|
|
public $timestamps = true;
|
|
use SoftDeletes;
|
|
protected $dates = ['deleted_at'];
|
|
|
|
public function account()
|
|
{
|
|
return $this->belongsTo('App\Models\Account');
|
|
}
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('App\Models\User');
|
|
}
|
|
|
|
public function timesheet_events()
|
|
{
|
|
return $this->hasMany('App\Models\TimeSheetEvent');
|
|
}
|
|
}
|