<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('screen_print_entries', function (Blueprint $table) {
            $table->id();

            $table->foreignId('quote_id')->constrained()->cascadeOnDelete();

            $table->integer('quantity')->nullable();
            $table->string('logo')->nullable();
            $table->string('placement')->nullable();
            $table->decimal('width', 6, 2)->nullable();
            $table->decimal('height', 6, 2)->nullable();
            $table->integer('color_amount')->nullable();
            $table->integer('setup_amount')->nullable();
            $table->decimal('run_charge', 8, 2)->nullable();
            $table->decimal('color_change', 8, 2)->nullable();
            $table->decimal('color_match', 8, 2)->nullable();
            $table->decimal('flash', 8, 2)->nullable();
            $table->decimal('fleece', 8, 2)->nullable();
            $table->decimal('poly_ink', 8, 2)->nullable();
            $table->decimal('artwork_fee', 8, 2)->nullable();
            $table->decimal('repacking_fee', 8, 2)->nullable();
            $table->text('notes')->nullable();

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('screen_print_entries');
    }
};