Trash Get, Restore API completed, Project Delete API completed

This commit is contained in:
2025-05-15 14:08:14 +05:30
parent 79b6a4fa75
commit 46dafd4417
10 changed files with 342 additions and 86 deletions

View File

@@ -7,6 +7,7 @@ export interface Project extends Document {
projectName: string;
createdBy: User["_id"];
isArchive: boolean;
isDeleted: boolean;
thumbnail: string;
sharedUsers: [];
DeletedAt: Date;
@@ -22,6 +23,7 @@ const projectSchema: Schema = new Schema(
createdBy: { type: Schema.Types.ObjectId, ref: "user" },
sharedUsers: [{ type: Schema.Types.ObjectId, ref: "user" }],
DeletedAt: { type: Date, default: null },
isDeleted: { type: Boolean, default: false },
total_versions: { type: String },
Present_version: { type: String },
},