feat: autorisations

This commit is contained in:
2026-05-16 15:15:44 +02:00
parent 425d0d2498
commit 276978128d
7 changed files with 133 additions and 1 deletions
@@ -19,7 +19,6 @@ return new class extends Migration
$table->string('password');
$table->text('bio')->nullable();
$table->string('avatar_url', 2048)->nullable();
$table->rememberToken();
$table->timestamps();
});
@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('device_tokens', function (Blueprint $table) {
$table->id();
$table->foreignUlid('user_id')->constrained()->cascadeOnDelete();
$table->string('expo_push_token');
$table->string('platform')->nullable();
$table->timestampsTz();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('device_tokens');
}
};