crud and http controller
This commit is contained in:
parent
cba12be4b1
commit
c27c061c15
51 changed files with 930 additions and 387 deletions
14
server/src/features/projects/projects_model.ts
Normal file
14
server/src/features/projects/projects_model.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { IsArray, IsString, IsOptional } from "class-validator";
|
||||
import { Schema, model } from "mongoose";
|
||||
|
||||
export interface IProjectModel {}
|
||||
|
||||
export const ProjectSchema = new Schema({
|
||||
|
||||
});
|
||||
|
||||
const schema = "Projects";
|
||||
|
||||
export const ProjectDBModel = model<IProjectModel>(schema, ProjectSchema);
|
||||
|
||||
export class ProjectModel implements IProjectModel {}
|
Loading…
Add table
Add a link
Reference in a new issue