12345678910111213141516171819202122232425262728293031323334353637 |
- <?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->bigIncrements('id');
- $table->string('name');
- $table->string('google_id');
- $table->string('email')->unique();
- $table->timestamp('email_verified_at')->nullable();
- // $table->string('password')->nullable();
- $table->rememberToken();
- $table->timestamps();
- });
- }
-
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('users');
- }
- }
|