mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-12 11:11:47 +00:00
Add IMemberProject to Project.ts model
This commit is contained in:
@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user