feat: add ticket fields to Product and ProductVariant models, requests, and resources

This commit is contained in:
2026-07-14 15:19:53 -03:00
parent 0e9f7faaf1
commit cababe1a43
8 changed files with 87 additions and 1 deletions

View File

@@ -18,6 +18,9 @@ use Illuminate\Database\Eloquent\Casts\Attribute;
'stock_reservado',
'stock',
'is_placeholder',
'has_tickets',
'minimum_use_date',
'maximum_use_date',
])]
class ProductVariant extends Model
{
@@ -126,6 +129,9 @@ class ProductVariant extends Model
'stock_real' => 'integer',
'stock_reservado' => 'integer',
'is_placeholder' => 'boolean',
'has_tickets' => 'boolean',
'minimum_use_date' => 'datetime',
'maximum_use_date' => 'datetime',
];
}