adding event tracker

This commit is contained in:
Emily
2024-06-11 18:41:45 +02:00
parent da6984add9
commit 7460ad5ed4
7 changed files with 146 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ export type TEvent = {
const EventSchema = new Schema<TEvent>({
project_id: { type: Types.ObjectId, index: 1 },
name: { type: String, required: true },
name: { type: String, required: true, index: 1 },
metadata: Schema.Types.Mixed,
session: { type: String },
flowHash: { type: String },