Файл: src/database/migrations/2016_04_14_191732_create_users_table.php
Строк: 37
<?php
use IlluminateDatabaseMigrationsMigration;
use IlluminateDatabaseSchemaBlueprint;
class CreateUsersTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('Users', function(Blueprint $table)
{
$table->increments('UserID')->unsigned();
$table->string("Username",45);
$table->string("Name",45);
$table->string("Surname",45);
$table->string("Email",100);
$table->string("Password",100);
$table->string("ActivationToke",100);
$table->string("RememberToken",100);
$table->timestamp("CreatedAt");
$table->timestamp("UpdatedAt");
$table->timestamp("DeletedAt")->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('Users');
}
}