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;