Files
growup-crm/database/migrations/2021_03_12_074597_create_roles_table.php
Cauê Faleiros afdda2dab0
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m38s
Fix: Add central users table and correct login redirection
- Copy users and roles migrations to central database context
- Redirect central domain root to /admin/login
- Fix SuperAdminSeeder to include required role_id
2026-02-03 16:39:35 -03:00

36 lines
772 B
PHP
Executable File

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('roles', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('description')->nullable();
$table->string('permission_type');
$table->json('permissions')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('roles');
}
};