Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
core
/
database
/
migrations
:
2020_05_25_122740_create_admins_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; class CreateAdminsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('admins', function (Blueprint $table) { $table->id(); $table->tinyInteger('status')->default(1)->comment('0 - deactive, 1 - active'); $table->integer('role_id')->nullable(); $table->string('name')->nullable(); $table->string('username')->nullable(); $table->string('email')->nullable(); $table->integer('email_verified')->default(0); $table->string('image')->nullable(); $table->string('password')->nullable(); $table->string('remember_token')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('admins'); } }