BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
public_html
/
app.imagivibe.com
/
database
/
migrations
📤 Upload
📝 New File
📁 New Folder
Close
Editing: 2023_03_01_134013_create_user_orders_table.php
<?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('user_orders', function (Blueprint $table) { $table->id(); $table->string('order_id')->nullable(); $table->unsignedBigInteger('plan_id')->nullable(); $table->foreign('plan_id')->references('id')->on('plans')->nullOnDelete(); $table->string('payment_type')->nullable(); $table->double('price')->nullable(); $table->string('status')->default('Waiting'); $table->string('country')->default('United States of America'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('user_orders'); } };
Save
Cancel