mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 15:13:29 +01:00
23 lines
378 B
PHP
Executable File
23 lines
378 B
PHP
Executable File
<?php
|
|
|
|
class Timesheet extends Eloquent
|
|
{
|
|
public $timestamps = true;
|
|
protected $softDelete = true;
|
|
|
|
public function account()
|
|
{
|
|
return $this->belongsTo('Account');
|
|
}
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('User');
|
|
}
|
|
|
|
public function timesheet_events()
|
|
{
|
|
return $this->hasMany('TimeSheetEvent');
|
|
}
|
|
}
|