Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
trouvaille
/
migrations
:
2014_10_12_000000_create_users_table.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function (Blueprint $table) { $table->id(); $table->string('name'); $table->string('first_name',255)->nullable(); $table->string('last_name',255)->nullable(); $table->string('business_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->decimal('review_score', 2, 1)->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->tinyInteger('need_update_pw')->nullable()->default(0); $table->bigInteger('role_id')->nullable(); $table->softDeletes(); $table->rememberToken(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('users'); } };