2023-10-26 17:44:54 +03:00
|
|
|
import { Schema, model } from "mongoose";
|
|
|
|
|
2023-11-28 18:34:41 +03:00
|
|
|
export interface ITestModel {
|
2023-10-26 17:44:54 +03:00
|
|
|
_id?: string;
|
|
|
|
result: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const TestSchema = new Schema({
|
|
|
|
result: String,
|
|
|
|
});
|
|
|
|
|
|
|
|
const schema = "Test";
|
|
|
|
|
|
|
|
export const TestDBModel = model<ITestModel>(schema, TestSchema);
|