feat: Implement Group Management with Create and Assign Functionality

This commit is contained in:
Ruben Talstra 2025-02-18 23:02:35 +01:00
parent 06282b584f
commit 39649ce523
No known key found for this signature in database
GPG key ID: 2A5A7174A60F3BEA
7 changed files with 167 additions and 0 deletions

View file

@ -0,0 +1,29 @@
const mongoose = require('mongoose');
const groupSchema = new mongoose.Schema(
{
name: {
type: String,
required: true,
unique: true,
},
description: {
type: String,
},
allowedEndpoints: [
{
type: String,
required: true,
},
],
allowedModels: [
{
type: String,
},
],
},
{ timestamps: true },
);
module.exports = groupSchema;