Update master data , login style
This commit is contained in:
@@ -17,6 +17,7 @@ class CreateUsersTable extends Migration
|
||||
$table->uuid('id')->primary();
|
||||
$table->string('name');
|
||||
$table->string('nrk')->unique();
|
||||
$table->string('role_name', 30);
|
||||
// $table->timestamp('email_verified_at')->nullable();
|
||||
$table->string('password');
|
||||
$table->rememberToken();
|
||||
|
||||
@@ -75,6 +75,7 @@ class CreatePermissionTables extends Migration
|
||||
});
|
||||
|
||||
Schema::create($tableNames['model_has_roles'], function (Blueprint $table) use ($tableNames, $columnNames, $teams) {
|
||||
$table->bigIncrements('id');
|
||||
$table->unsignedBigInteger(PermissionRegistrar::$pivotRole);
|
||||
|
||||
$table->string('model_type');
|
||||
@@ -98,6 +99,7 @@ class CreatePermissionTables extends Migration
|
||||
});
|
||||
|
||||
Schema::create($tableNames['role_has_permissions'], function (Blueprint $table) use ($tableNames) {
|
||||
$table->bigIncrements('id');
|
||||
$table->unsignedBigInteger(PermissionRegistrar::$pivotPermission);
|
||||
$table->unsignedBigInteger(PermissionRegistrar::$pivotRole);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user