mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-11 10:41:46 +00:00
Add IMemberProject to Project.ts model
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { model, ObjectId, Schema } from "mongoose";
|
||||
import crypto from "crypto";
|
||||
import {IKeyRole} from "@models/AccessKey";
|
||||
|
||||
export interface IProjectDefaults {
|
||||
licenseKey: string,
|
||||
@ -17,6 +18,10 @@ export interface IProject {
|
||||
defaults: IProjectDefaults
|
||||
}
|
||||
|
||||
export interface IMemberProject extends IProject {
|
||||
role: IKeyRole
|
||||
}
|
||||
|
||||
const ProjectSchema = new Schema<IProject>({
|
||||
name: {
|
||||
type: String,
|
||||
|
||||
Reference in New Issue
Block a user