D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
mikyal.online
/
database
/
migrations
/
Filename :
2023_08_20_093956_create_product_seos_table.php
back
Copy
<?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('product_seos', function (Blueprint $table) { $table->id(); $table->foreignId('product_id')->constrained('products'); $table->string('title'); $table->longtext('description'); $table->json('meta_keyword'); $table->string('creator_type')->nullable(); $table->bigInteger('creator_id')->nullable(); $table->string('editor_type')->nullable(); $table->bigInteger('editor_id')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('product_seos'); } };