add flow-hash

This commit is contained in:
Emily
2024-06-10 15:05:05 +02:00
parent e0981cef4a
commit 0c3a25b7e0
6 changed files with 31 additions and 10 deletions

View File

@@ -5,6 +5,7 @@ export type TEvent = {
name: string,
metadata: Record<string, string>,
session: string,
flowHash: string,
created_at: Date
}
@@ -13,6 +14,7 @@ const EventSchema = new Schema<TEvent>({
name: { type: String, required: true },
metadata: Schema.Types.Mixed,
session: { type: String },
flowHash: { type: String },
created_at: { type: Date, default: () => Date.now() },
})