Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

2014_10_12_000000_create_users_table.php 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. use Wallo\FilamentCompanies\Socialite;
  6. return new class extends Migration
  7. {
  8. /**
  9. * Run the migrations.
  10. */
  11. public function up(): void
  12. {
  13. Schema::create('users', function (Blueprint $table) {
  14. $table->id();
  15. $table->string('name');
  16. $table->string('email')->unique();
  17. $table->timestamp('email_verified_at')->nullable();
  18. $table->string('password')->nullable(
  19. Socialite::hasSocialiteFeatures()
  20. );
  21. $table->rememberToken();
  22. $table->foreignId('current_company_id')->nullable();
  23. $table->foreignId('current_connected_account_id')->nullable();
  24. $table->string('profile_photo_path')->nullable();
  25. $table->timestamps();
  26. });
  27. }
  28. /**
  29. * Reverse the migrations.
  30. */
  31. public function down(): void
  32. {
  33. Schema::dropIfExists('users');
  34. }
  35. };