feat: Add customer notes functionality and enhance invoice/order models with date fields

This commit is contained in:
baodev0
2026-07-25 11:05:34 +07:00
parent cd61e1d242
commit 4daf52ef3e
9 changed files with 378 additions and 1 deletions
+7
View File
@@ -4,6 +4,7 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Note extends Model
{
@@ -14,6 +15,12 @@ class Note extends Model
protected $fillable = [
'note',
'customer_id',
'service_id',
'user_id'
];
public function user(): BelongsTo
{
return $this->belongsTo(User::class, 'user_id');
}
}