Open prakashelango opened 8 months ago
https://www.notion.so/better/Add-New-Group-FE-04ceae5ab58e448284bb82d35aa70217?pvs=4
Please check this link for the details
@prakashelango @lihka1202 continuing from user settings. Following is one of the methods to allow user to group/add new group
Collection for existing/predefined things (Collection name: Picture) { _id: ObjectId, imageUrl: String, // Other picture-related fields such as voice }
Adding UserGroupCollection (Predefined Groups): { _id: ObjectId, groupName: String, pictures: [ObjectId], // References to pictures in the Picture collection }
UserPictureCollection (User-Created Collections): { _id: ObjectId, userId: ObjectId, // Reference to the User collection collectionName: String, pictureGroups: [ { groupName: String, pictures: [ObjectId], // References to pictures in the Picture collection }, // Additional picture groups as needed ], }
@delose @Lucas (slack username) FYI too
Fields
GroupName,
Image, Hidden Fields Id - UserId