Update v1.0.6
This commit is contained in:
59
database/migrations/2016_02_16_140450_create_users_table.php
Normal file
59
database/migrations/2016_02_16_140450_create_users_table.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?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->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');
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user