Skip to content

Commit

Permalink
Add timezone, locale, currency, and country code fields to users tabl…
Browse files Browse the repository at this point in the history
…e; drop providers table in migration rollback
  • Loading branch information
abdessamadbettal committed Dec 16, 2024
1 parent e6749c4 commit 3571646
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions database/migrations/0001_01_01_000000_create_users_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ public function up(): void
$table->integer('login_count')->default(0);
$table->timestamp('last_login')->nullable();

$table->string('timezone')->default('UTC');
$table->string('locale')->default('en');
$table->string('currency')->default('USD');
$table->string('country_code')->nullable();


$table->tinyInteger('status')->default(1)->unsigned();

$table->integer('created_by')->unsigned()->nullable();
Expand Down Expand Up @@ -76,5 +82,6 @@ public function down(): void
Schema::dropIfExists('users');
Schema::dropIfExists('password_reset_tokens');
Schema::dropIfExists('sessions');
Schema::dropIfExists('providers');
}
};

0 comments on commit 3571646

Please sign in to comment.