mvp progress
This commit is contained in:
parent
9b16b25187
commit
6446da7e76
75 changed files with 1865 additions and 244 deletions
|
@ -5,6 +5,7 @@ import { IsMongoId, IsString } from "class-validator";
|
|||
export interface IProjectModel {
|
||||
pipelines: [PipelineModel];
|
||||
rootDir: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export const ProjectSchema = new Schema({
|
||||
|
@ -17,6 +18,9 @@ export const ProjectSchema = new Schema({
|
|||
rootDir: {
|
||||
type: String,
|
||||
},
|
||||
description: {
|
||||
type: String,
|
||||
},
|
||||
}).plugin(require("mongoose-autopopulate"));
|
||||
|
||||
const schema = "Projects";
|
||||
|
@ -25,7 +29,11 @@ export const ProjectDBModel = model<IProjectModel>(schema, ProjectSchema);
|
|||
|
||||
export class ProjectModel implements IProjectModel {
|
||||
@IsMongoId()
|
||||
pipelines: [PipelineModel];
|
||||
public pipelines: [PipelineModel];
|
||||
|
||||
@IsString()
|
||||
rootDir: string;
|
||||
public rootDir: string;
|
||||
|
||||
@IsString()
|
||||
public description: string;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue