V2 API for visualization gomathi part completed

This commit is contained in:
2025-03-28 17:44:49 +05:30
parent dc5d7c2ebf
commit 2b34040d8c
17 changed files with 658 additions and 160 deletions

View File

@@ -19,7 +19,6 @@ const eventSchema: Schema = new Schema(
pointsUUID: { type: String },
isArchive: { type: Boolean, default: false },
actionUUID: { type: String },
sceneID: { type: String },
eventData: [
{
uuid: { type: String },
@@ -34,6 +33,6 @@ const eventSchema: Schema = new Schema(
);
const actionModel = (db: any) => {
return MainModel(db, "Events", eventSchema, "Events");
return MainModel(db, "Actions", eventSchema, "Actions");
};
export default actionModel;