feat(ticket): add source IDs to tickets and update related services and tests

This commit is contained in:
2026-07-21 12:27:26 -03:00
parent c0978033c1
commit 38f74739da
6 changed files with 63 additions and 6 deletions

View File

@@ -14,6 +14,8 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
'ticket',
'name',
'description',
'source_catalog_item_id',
'source_variant_id',
'starts_at',
'expires_at',
'used_at',
@@ -34,6 +36,8 @@ class Ticket extends Model
protected function casts(): array
{
return [
'source_catalog_item_id' => 'integer',
'source_variant_id' => 'integer',
'starts_at' => 'datetime',
'expires_at' => 'datetime',
'used_at' => 'datetime',