Compare commits

..

2 Commits

Author SHA1 Message Date
b1ek 187092b38a
fix: sessions PK 2024-08-29 19:21:37 +10:00
b1ek a9e0999811
fix: use uuid instead of PK 2024-08-29 19:13:42 +10:00
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('users', function (Blueprint $table) {
$table->id()->type('uuid');
$table->uuid('id')->primary();
$table->string('last_name');
$table->string('name');
$table->string('middle_name');
@ -23,7 +23,7 @@ return new class extends Migration
});
Schema::create('passwords', function (Blueprint $table) {
$table->id();
$table->uuid('id')->primary();
$table->string('hash');
$table->foreignId('user_id')->index();
$table->timestamps();