topnotch_website/database/migrations/021_create_screen_print_entries_table.php

48 lines
1.5 KiB
PHP
Raw Normal View History

2025-02-01 09:57:57 -08:00
<?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();
2025-02-01 09:57:57 -08:00
$table->integer('quantity')->nullable();
$table->string('logo')->nullable();
2025-02-12 13:32:39 -05:00
$table->string('placement')->nullable();
2025-02-01 09:57:57 -08:00
$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();
2025-02-12 13:32:39 -05:00
$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();
2025-02-01 09:57:57 -08:00
$table->text('notes')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('screen_print_entries');
}
};