mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
add domain filter on events
This commit is contained in:
@@ -6,6 +6,7 @@ export type TEvent = {
|
||||
metadata: Record<string, string>,
|
||||
session: string,
|
||||
flowHash: string,
|
||||
website: string,
|
||||
created_at: Date
|
||||
}
|
||||
|
||||
@@ -15,6 +16,7 @@ const EventSchema = new Schema<TEvent>({
|
||||
metadata: Schema.Types.Mixed,
|
||||
session: { type: String, index: 1 },
|
||||
flowHash: { type: String },
|
||||
website: { type: String, index: 1 },
|
||||
created_at: { type: Date, default: () => Date.now(), index: true },
|
||||
})
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ export type TSession = {
|
||||
session: string,
|
||||
flowHash: string,
|
||||
duration: number,
|
||||
website: string,
|
||||
updated_at: Date,
|
||||
created_at: Date,
|
||||
}
|
||||
@@ -14,6 +15,7 @@ const SessionSchema = new Schema<TSession>({
|
||||
project_id: { type: Types.ObjectId, index: 1 },
|
||||
session: { type: String, required: true, index: 1 },
|
||||
flowHash: { type: String },
|
||||
website: { type: String },
|
||||
duration: { type: Number, required: true, default: 0 },
|
||||
updated_at: { type: Date, default: () => Date.now() },
|
||||
created_at: { type: Date, default: () => Date.now(), index: true },
|
||||
|
||||
Reference in New Issue
Block a user