Viewing File: /home/ubuntu/efidemo/database/migrations/2022_05_09_090051_create_admins_table.php
<?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->string('unique_id');
$table->string('name');
$table->string('email')->unique();
$table->string('password');
$table->text('about')->nullable();
$table->string('picture')->default(asset('placeholder.jpeg'));
$table->string('timezone')->default("");
$table->enum('gender', [MALE, FEMALE, OTHERS, RATHER_NOT_SELECT])->default(RATHER_NOT_SELECT);
$table->tinyInteger('status')->default(APPROVED);
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('admins');
}
}
Back to Directory
File Manager