Add IMemberProject to Project.ts model

This commit is contained in:
Mathias Wagner
2024-07-22 22:10:24 +02:00
parent 62ef3e8bfb
commit e1e1f9070a

View File

@ -1,5 +1,6 @@
import { model, ObjectId, Schema } from "mongoose"; import { model, ObjectId, Schema } from "mongoose";
import crypto from "crypto"; import crypto from "crypto";
import {IKeyRole} from "@models/AccessKey";
export interface IProjectDefaults { export interface IProjectDefaults {
licenseKey: string, licenseKey: string,
@ -17,6 +18,10 @@ export interface IProject {
defaults: IProjectDefaults defaults: IProjectDefaults
} }
export interface IMemberProject extends IProject {
role: IKeyRole
}
const ProjectSchema = new Schema<IProject>({ const ProjectSchema = new Schema<IProject>({
name: { name: {
type: String, type: String,