1
0

2016_06_01_000004_create_oauth_clients_table.php 954 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. return new class extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. */
  10. public function up(): void
  11. {
  12. Schema::create('oauth_clients', function (Blueprint $table) {
  13. $table->bigIncrements('id');
  14. $table->unsignedBigInteger('user_id')->nullable()->index();
  15. $table->string('name');
  16. $table->string('secret', 100)->nullable();
  17. $table->string('provider')->nullable();
  18. $table->text('redirect');
  19. $table->boolean('personal_access_client');
  20. $table->boolean('password_client');
  21. $table->boolean('revoked');
  22. $table->timestamps();
  23. });
  24. }
  25. /**
  26. * Reverse the migrations.
  27. */
  28. public function down(): void
  29. {
  30. Schema::dropIfExists('oauth_clients');
  31. }
  32. };