Files
crm.stream.graff.tech/server/src/models/Action.ts
T
2023-10-20 15:14:02 +05:00

24 lines
402 B
TypeScript

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;