RecentlyViewed API, view API, home page file added

This commit is contained in:
2025-05-16 12:25:00 +05:30
parent bd0c5013a9
commit 0e7db2af8d
7 changed files with 115 additions and 10 deletions

View File

@@ -11,6 +11,7 @@ export interface Project extends Document {
thumbnail: string;
sharedUsers: [];
DeletedAt: Date;
isViewed: number;
total_versions: string;
Present_version: string;
}
@@ -24,6 +25,7 @@ const projectSchema: Schema = new Schema(
sharedUsers: [{ type: Schema.Types.ObjectId, ref: "user" }],
DeletedAt: { type: Date, default: null },
isDeleted: { type: Boolean, default: false },
isViewed: { type: Number },
total_versions: { type: String },
Present_version: { type: String },
},