WIP(teams): data migration draft

This commit is contained in:
SabreCat
2022-03-04 18:17:43 -06:00
parent 9d4bf22720
commit 61be42bf05
2 changed files with 59 additions and 1 deletions

View File

@@ -127,7 +127,8 @@ export const TaskSchema = new Schema({
group: {
id: { $type: String, ref: 'Group', validate: [v => validator.isUUID(v), 'Invalid uuid for group task.'] },
broken: { $type: String, enum: ['GROUP_DELETED', 'TASK_DELETED', 'UNSUBSCRIBED'] },
assignedDate: { $type: Date }, // To be removed
assigningUsername: { $type: String }, // To be removed
assignedUsers: {
$type: Schema.Types.Mixed,
// key is assigned UUID, with