feat(catalog): add sales_end_at field to catalog items and implement sale logic

feat(event): include catalog items in event resource and update event service
test(seeder): add FiestaTradicionArrufoSeeder for event and catalog item setup
config: set event timezone for local event dates
This commit is contained in:
2026-09-18 16:37:40 -03:00
parent dc5134a6ec
commit b0702b7e15
11 changed files with 221 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('catalog_items', function (Blueprint $table): void {
$table->timestamp('sales_end_at')->nullable()->after('precio');
});
}
public function down(): void
{
Schema::table('catalog_items', function (Blueprint $table): void {
$table->dropColumn('sales_end_at');
});
}
};