bettersg / saylah-v2

MIT License
0 stars 5 forks source link

Add new Group #4

Open prakashelango opened 8 months ago

prakashelango commented 8 months ago

Fields

GroupName,

Image, Hidden Fields Id - UserId

gingy3 commented 8 months ago

https://www.notion.so/better/Add-New-Group-FE-04ceae5ab58e448284bb82d35aa70217?pvs=4

Please check this link for the details

Samson-DVS commented 7 months ago

@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