controller update

This commit is contained in:
2026-03-05 18:43:19 -06:00
parent 14588269d6
commit 020e473dc9
9 changed files with 196 additions and 42 deletions

View File

@@ -11,32 +11,28 @@ return new class extends Migration
*/
public function up(): void
{
if(!Schema::hasTable('users')) {
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('character_id');
$table->string('character_owner_hash')->index();
$table->string('character_name');
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->string('character_owner_hash');
$table->string('token');
$table->string('refresh_token');
$table->integer('expiresIn');
$table->string('user_jwt_token');
$table->unsignedBigInteger('character_id')->unique();
$table->text('token');
$table->text('refresh_token')->nullable();
$table->integer('expiresIn')->nullable();
// As requested: "user" holds jwt. (Note: naming a column "user" can be confusing later;
// consider "jwt" in future refactors, but this honors your spec.)
$table->text('user')->nullable();
$table->rememberToken();
$table->timestamps();
});
}
if(!Schema::hasTable('password_reset_tokens')) {
Schema::create('password_reset_tokens', function (Blueprint $table) {
$table->string('email')->primary();
$table->string('token');
$table->timestamp('created_at')->nullable();
});
}
if(!Schema::hasTable('sessions')) {
Schema::create('sessions', function (Blueprint $table) {
$table->string('id')->primary();