This commit is contained in:
2023-10-20 15:14:02 +05:00
parent 45e5b95dd9
commit 6f908a0da1
11 changed files with 125 additions and 10 deletions
+23
View File
@@ -0,0 +1,23 @@
import { model, Schema } from "mongoose";
const actionSchema = new Schema(
{
sessionId: {
type: Schema.Types.ObjectId,
required: true,
},
pointName: {
type: String,
required: true,
},
},
{
timestamps: true,
toJSON: { virtuals: true },
toObject: { virtuals: true },
}
);
const Action = model("Action", actionSchema);
export default Action;