<?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('product_mails', function (Blueprint $t) { $t->id(); $t->unsignedInteger('product_id'); $t->string('condition', 255); $t->string('identifier', 255); $t->string('value', 255)->nullable(); $t->boolean('status')->default(1); $t->text('mail_template'); $t->timestamp('created_at')->nullable(); $t->timestamp('updated_at')->nullable(); }); } public function down(): void { Schema::dropIfExists('product_mails'); } }; 