feat(desfile): add entry reservation model
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?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::create('desfile_entry_reservations', function (Blueprint $table): void {
|
||||
$table->id();
|
||||
$table->foreignId('variant_id')
|
||||
->constrained('variantes')
|
||||
->restrictOnDelete();
|
||||
$table->timestamp('fecha_reserva');
|
||||
$table->decimal('importe', 10, 2)->nullable();
|
||||
$table->string('tipo_pago', 24);
|
||||
$table->timestamps();
|
||||
|
||||
$table->index(['fecha_reserva', 'tipo_pago']);
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('desfile_entry_reservations');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user