Implementar modulo de Roles y Usuarios

This commit is contained in:
2026-06-02 23:19:34 +00:00
parent 8b306b9afc
commit c6f3f3d135
17 changed files with 405 additions and 2 deletions

View File

@ -0,0 +1,26 @@
import mongoose, { Schema } from "mongoose";
const roleSchema = new mongoose.Schema({
roleName:{
type:String,
required:true,
unique:true
},
description:{
type:String
},
active:{
type:Boolean,
default:true
}
},
{
timestamps:true
}
);
export default mongoose.model("Role", roleSchema);