use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProductsTable extends Migration { public function up() { Schema::create('products', function (Blueprint $table) { $table->id(); $table->string('title'); $table->text('description')->nullable(); $table->decimal('price', 10, 2); $table->decimal('original_price', 10, 2)->nullable(); $table->string('currency')->default('TRY'); // Turkish Lira $table->string('trendyol_url'); $table->string('trendyol_id')->unique()->nullable(); $table->string('brand')->nullable(); $table->json('images')->nullable(); $table->json('variants')->nullable(); // For size, color, etc. $table->integer('stock')->default(0); $table->boolean('is_active')->default(true); $table->timestamps(); }); } public function down() { Schema::dropIfExists('products'); } }