File: /home/xedaptot/ai.naniguide.com/app/Model/PlanQuota.php
<?php
namespace App\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
/**
* plan_quotas — per-plan static resource limits.
*
* See docs/payment-order-plan-subscription-saas/SUBSCRIPTION-COMPREHENSIVE-DESIGN.md §3.1.
*/
class PlanQuota extends Model
{
use HasFactory;
protected $connection = 'mysql';
protected $table = 'plan_quotas';
protected $fillable = [
'plan_id',
'quota_key',
'limit_value',
];
protected $casts = [
'limit_value' => 'integer',
];
public function plan()
{
return $this->belongsTo(Plan::class);
}
protected static function newFactory()
{
return \Database\Factories\PlanQuotaFactory::new();
}
}