MVP back end

This commit is contained in:
IDONTSUDO 2023-10-31 09:03:39 +00:00 committed by Igor Brylyov
parent 528b9f67d4
commit 889fc95c3d
51 changed files with 1048 additions and 426 deletions

View 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);