mirror of
https://gitlab.com/izyim/prototypes/lumen-microservices/microservice-api-gateway.git
synced 2026-08-19 04:24:15 +00:00
37 lines
756 B
PHP
37 lines
756 B
PHP
<?php
|
|
|
|
declare(strict_types = 1);
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class AddUsersTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up() : void
|
|
{
|
|
Schema::create('users', function (Blueprint $table) {
|
|
$table->bigIncrements('id');
|
|
$table->string('name', 256);
|
|
$table->string('email', 256);
|
|
$table->string('password', 512);
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down() : void
|
|
{
|
|
Schema::dropIfExists('users');
|
|
}
|
|
}
|