Skip to content

Commit

Permalink
fix(Project): add didMigrateWorkbench and projectID index
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeaturner committed Jan 16, 2024
1 parent 5362c98 commit 80129c5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions server/models/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export interface ProjectInterface extends Document {
libreShelf: string;
libreCampus: string;
didCreateWorkbench?: boolean;
didMigrateWorkbench?: boolean; // migrated from sandbox
author: string;
authorEmail: string;
license: string;
Expand Down Expand Up @@ -70,6 +71,8 @@ const ProjectSchema = new Schema<ProjectInterface>(
projectID: {
type: String,
required: true,
unique: true,
index: true,
},
/**
* Project's title.
Expand Down Expand Up @@ -162,6 +165,13 @@ const ProjectSchema = new Schema<ProjectInterface>(
type: Boolean,
default: false,
},
/**
* Whether the Project was migrated from a Sandbox.
*/
didMigrateWorkbench: {
type: Boolean,
default: false,
},
/**
* Name of the associated Book/resource's author.
*/
Expand Down

0 comments on commit 80129c5

Please sign in to comment.