mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-18 13:45:23 +02:00
- Added a new component for managing user roles, allowing assignment and creation of roles. - Introduced a new API router for role management, including endpoints for creating, updating, and deleting roles. - Updated the database schema to support role management with a new "organization_role" table. - Enhanced user management to include role assignments and permissions handling. - Updated UI components to integrate the new role management features.
14 lines
265 B
TypeScript
14 lines
265 B
TypeScript
import { createDefaultRoles } from "../migrations/create-default-roles";
|
|
|
|
async function main() {
|
|
try {
|
|
await createDefaultRoles();
|
|
process.exit(0);
|
|
} catch (error) {
|
|
console.error("Failed to create default roles:", error);
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
main();
|