Files
faveo/database/migrations/2016_02_16_140450_create_users_table.php
2016-06-13 20:41:55 +05:30

58 lines
1.8 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('user_name');
$table->string('first_name');
$table->string('last_name');
$table->boolean('gender');
$table->string('email')->unique();
$table->boolean('ban');
$table->string('password', 60);
$table->integer('active');
$table->string('ext');
$table->integer('country_code');
$table->string('phone_number');
$table->string('mobile');
$table->text('agent_sign', 65535);
$table->string('account_type');
$table->string('account_status');
$table->integer('assign_group')->unsigned()->nullable()->index('assign_group_3');
$table->integer('primary_dpt')->unsigned()->nullable()->index('primary_dpt_2');
$table->string('agent_tzone');
$table->string('daylight_save');
$table->string('limit_access');
$table->string('directory_listing');
$table->string('vacation_mode');
$table->string('company');
$table->string('role');
$table->string('internal_note');
$table->string('profile_pic');
$table->string('remember_token', 100)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('users');
}
}