You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

47 lines
1.4 KiB

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('nickname');
$table->string('name')->nullable();
$table->boolean('gender_id')->unsigned();
$table->unsignedInteger('father_id')->nullable();
$table->unsignedInteger('mother_id')->nullable();
$table->unsignedInteger('parent_id')->nullable();
$table->date('dob')->nullable();
$table->date('dod')->nullable();
$table->date('yod')->nullable();
$table->string('email')->unique()->nullable();
$table->string('password')->nullable();
$table->string('address')->nullable();
$table->string('city')->nullable();
$table->string('phone')->nullable();
$table->unsignedInteger('manager_id')->nullable();
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
}