mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 22:39:34 +00:00
36 lines
592 B
PHP
36 lines
592 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class SubTask extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
public $timestamps = true;
|
|
|
|
public function mastertask()
|
|
{
|
|
return $this->belongsTo(MasterTask::class);
|
|
}
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(MasterTask::class);
|
|
}
|
|
|
|
public function timeblocks()
|
|
{
|
|
return $this->hasMany(Timeblock::class);
|
|
}
|
|
|
|
public function timesheets()
|
|
{
|
|
return $this->hasMany(Timesheet::class);
|
|
}
|
|
}
|
|
|
|
|