Server IP : 66.29.132.124 / Your IP : 3.144.255.158 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/database/migrations/ |
Upload File : |
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function (Blueprint $table) { $table->bigIncrements('id'); $table->string('name'); $table->string('first_name',255)->nullable(); $table->string('last_name',255)->nullable(); $table->string('email')->unique(); $table->timestamp('email_verified_at')->nullable(); $table->string('password'); $table->string('address',255)->nullable(); $table->string('address2',255)->nullable(); $table->string('phone',30)->nullable(); $table->date('birthday')->nullable(); $table->string('city',255)->nullable(); $table->string('state',255)->nullable(); $table->string('country',255)->nullable(); $table->integer('zip_code')->nullable(); $table->dateTime('last_login_at')->nullable(); $table->bigInteger('avatar_id')->nullable(); $table->text('bio')->nullable(); $table->string('status',20)->nullable(); $table->integer('create_user')->nullable(); $table->integer('update_user')->nullable(); $table->integer('vendor_commission_amount')->nullable(); $table->string('vendor_commission_type',30)->nullable(); $table->softDeletes(); $table->rememberToken(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('users'); } }