This commit is contained in:
2026-03-11 00:10:06 -05:00
parent 73dd660af3
commit 6db7d745fd
2 changed files with 3 additions and 3 deletions

View File

@@ -12,8 +12,8 @@ class UserRole extends Model
protected $table = 'user_roles';
//Primary Key
public $primaryKey = 'character_id';
protected $primaryKey = 'character_id';
public $incrementing = false;
public $timestamps = true;
/**

View File

@@ -37,7 +37,7 @@ return new class extends Migration
if(!Schema::hasTable('user_permissions')) {
Schema::create('user_permissions', function (Blueprint $table) {
$table->increments('id');
$table->unsignedBigInteger('character_id');
$table->unsignedBigInteger('character_id')->default(0);
$table->string('permission');
$table->timestamps();