controller update
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user