PATH:
home
/
rwabteecom
/
project_11
/
database
/
migrations
/
Editing: 2024_02_03_095719_create_user_plans_table.php
<?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('user_plans', function (Blueprint $table) { $table->id(); $table->foreignId("user_id")->nullable()->constrained()->nullOnDelete(); $table->json("title"); $table->longText("description")->nullable(); $table->integer("price"); $table->integer("order"); $table->string("plan_end_at"); $table->timestamps(); }); } public function down(): void { Schema::dropIfExists('user_plans'); } };
SAVE
CANCEL