new consumer

This commit is contained in:
Emily
2024-09-18 23:05:07 +02:00
parent 628e471cec
commit 3c59551f88
21 changed files with 1568 additions and 1624 deletions

View File

@@ -6,6 +6,7 @@ export type TProjectCount = {
events: number,
visits: number,
sessions: number,
lastRecheck?: Date
}
const ProjectCountSchema = new Schema<TProjectCount>({
@@ -13,6 +14,7 @@ const ProjectCountSchema = new Schema<TProjectCount>({
events: { type: Number, required: true, default: 0 },
visits: { type: Number, required: true, default: 0 },
sessions: { type: Number, required: true, default: 0 },
lastRecheck: { type: Date }
});
export const ProjectCountModel = model<TProjectCount>('project_counts', ProjectCountSchema);