mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-09 23:48:36 +01:00
add updated_at
This commit is contained in:
@@ -6,7 +6,8 @@ export type TProjectCount = {
|
||||
events: number,
|
||||
visits: number,
|
||||
sessions: number,
|
||||
lastRecheck?: Date
|
||||
lastRecheck?: Date,
|
||||
updated_at: Date
|
||||
}
|
||||
|
||||
const ProjectCountSchema = new Schema<TProjectCount>({
|
||||
@@ -14,7 +15,8 @@ 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 }
|
||||
});
|
||||
lastRecheck: { type: Date },
|
||||
updated_at: { type: Date }
|
||||
}, { timestamps: { updatedAt: 'updated_at' } });
|
||||
|
||||
export const ProjectCountModel = model<TProjectCount>('project_counts', ProjectCountSchema);
|
||||
Reference in New Issue
Block a user