add domain wipe

This commit is contained in:
Emily
2024-11-11 16:54:02 +01:00
parent f06d7d78fc
commit 2929b229c4
11 changed files with 440 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ export type TSession = {
const SessionSchema = new Schema<TSession>({
project_id: { type: Types.ObjectId, index: 1 },
session: { type: String, required: true },
session: { type: String, required: true, index: 1 },
flowHash: { type: String },
duration: { type: Number, required: true, default: 0 },
updated_at: { type: Date, default: () => Date.now() },