migrate to gtea from bistbucket

This commit is contained in:
2026-03-15 17:08:23 +07:00
commit 129ca2260c
3716 changed files with 566316 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
namespace Modules\Authentication\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class SubscriptionUpgradeRequest extends Model
{
protected $fillable = [
'restaurant_id',
'package_id',
'extra_days',
'amount_paid',
'payment_method',
'notes',
'status',
'approved_by',
'approved_at',
];
public function restaurant(): BelongsTo
{
return $this->belongsTo(Restaurant::class)->select('id', 'name');
}
public function package(): BelongsTo
{
return $this->belongsTo(Package::class)->select('id', 'name', 'price', 'duration');
}
public function approver(): BelongsTo
{
return $this->belongsTo(User::class, 'approved_by');
}
}