feat: implement core ERP modules, multi-tenant architecture, and comprehensive system workflow documentation.

This commit is contained in:
Ajjj
2026-08-05 01:18:31 +08:00
parent 1fcb468dc1
commit c03de704e2
46 changed files with 1902 additions and 387 deletions

View File

@@ -110,6 +110,13 @@ class Project extends Model
return $this->belongsTo(Contractor::class);
}
public function contractors(): BelongsToMany
{
return $this->belongsToMany(Contractor::class, 'project_contractor')
->withPivot('role', 'contract_amount')
->withTimestamps();
}
public function tasks(): HasMany
{
return $this->hasMany(Task::class)->orderBy('sort_order');