%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/www/admin1/app/Models/ |
Upload File : |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
/**
* App\Models\ProjectMilestone
*
* @property int $id
* @property int|null $project_id
* @property int|null $currency_id
* @property string $milestone_title
* @property string $summary
* @property float $cost
* @property string $status
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property int $invoice_created
* @property int|null $invoice_id
* @property int|null $added_by
* @property int|null $last_updated_by
* @property-read \App\Models\Currency|null $currency
* @property-read mixed $icon
* @property-read \App\Models\Project|null $project
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Task[] $tasks
* @property-read int|null $tasks_count
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone query()
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone whereAddedBy($value)
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone whereCost($value)
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone whereCurrencyId($value)
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone whereInvoiceCreated($value)
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone whereInvoiceId($value)
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone whereLastUpdatedBy($value)
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone whereMilestoneTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone whereProjectId($value)
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone whereStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone whereSummary($value)
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone whereUpdatedAt($value)
* @property \Illuminate\Support\Carbon|null $start_date
* @property \Illuminate\Support\Carbon|null $end_date
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone whereEndDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|ProjectMilestone whereStartDate($value)
* @mixin \Eloquent
*/
class ProjectMilestone extends BaseModel
{
protected $casts = [
'start_date' => 'datetime',
'end_date' => 'datetime',
];
public function currency(): BelongsTo
{
return $this->belongsTo(Currency::class, 'currency_id');
}
public function project(): BelongsTo
{
return $this->belongsTo(Project::class, 'project_id');
}
public function tasks(): HasMany
{
return $this->hasMany(Task::class, 'milestone_id');
}
}