crud and http controller
This commit is contained in:
parent
cba12be4b1
commit
c27c061c15
51 changed files with 930 additions and 387 deletions
15
server/test/model/test_db_mongo_model.ts
Normal file
15
server/test/model/test_db_mongo_model.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { Schema, model } from "mongoose";
|
||||
|
||||
export interface ITestModel{
|
||||
_id?: string;
|
||||
result: string;
|
||||
}
|
||||
|
||||
export const TestSchema = new Schema({
|
||||
result: String,
|
||||
});
|
||||
|
||||
const schema = "Test";
|
||||
|
||||
export const TestDBModel = model<ITestModel>(schema, TestSchema);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue