PATH:
home
/
rwabteecom
/
project_11
/
database
/
migrations
/
Editing: 2014_10_12_000000_create_users_table.php
<?php use App\Enums\StatusEnum; 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('users', function (Blueprint $table) { $table->id(); $table->string('name'); $table->string('email')->unique(); $table->string('phone')->unique()->nullable(); $table->timestamp('email_verified_at')->nullable(); $table->string('password'); $table->string("status")->default(StatusEnum::Active->value); $table->string('hashed_otp')->nullable(); $table->string('device_token')->nullable(); $table->string('default_lang')->default('ar'); $table->boolean('enable_notification')->default(1); $table->string('device_type')->nullable(); $table->boolean('is_owner')->default(0); // $table->boolean("is_subscribed_to_free_plan")->default(0); // $table->string("current_plan_expired_at")->nullable(); $table->softDeletes(); $table->rememberToken(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('users'); } };
SAVE
CANCEL