WIP(teams): display assigned tasks on user's personal board

This commit is contained in:
SabreCat
2022-06-13 16:53:29 -05:00
parent 9fec111c4d
commit a0177fa44d
12 changed files with 106 additions and 136 deletions

View File

@@ -129,10 +129,12 @@ export const TaskSchema = new Schema({
id: { $type: String, ref: 'Group', validate: [v => validator.isUUID(v), 'Invalid uuid for group task.'] },
assignedDate: { $type: Date }, // To be removed
assigningUsername: { $type: String }, // To be removed
assignedUsers: {
assignedUsers: [{ $type: String, ref: 'User', validate: [v => validator.isUUID(v), 'Invalid uuid for group assigned user.'] }],
assignedUsersDetail: {
$type: Schema.Types.Mixed,
// key is assigned UUID, with
// { assignedDate: Date,
// assignedUsername: '@username',
// assigningUsername: '@username',
// completed: Boolean,
// completedDate: Date }