From 500d6646dfc5bd6fb2183eeef8dd48ff58b1c8c2 Mon Sep 17 00:00:00 2001 From: ericscheid Date: Mon, 4 Dec 2023 15:47:50 +1100 Subject: [PATCH] Updated Folders etc (markdown) --- Folders-etc.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Folders-etc.md b/Folders-etc.md index 061e323..cbfa67e 100644 --- a/Folders-etc.md +++ b/Folders-etc.md @@ -45,19 +45,19 @@ Each folder is owned by one owner, and it only appears in the context of _their_ Multiple brews can be assigned to a folder by listing the `brew.shareID` in the folder entity. (This is distinct and different from a model where the association is achieved via an attribute on the brew entity). -Sub-folders are linked via a list of sub-folderIds, in the same manner as to how brews are linked. +Sub-folders are linked via a list of subfolderIds, in the same manner as how brews are linked. ### Minimal Data structure - `__Id` (mongo specific ID field, exists wether we create it or not) - `folderId` (nanoid, required, auto) -- `folderName` (to use in the URL) (string, required) -- `owner` (can be multiple?) -- `brewIds`(shareId) -- `createdAt` -- `UpdatedAt` +- `slug` (to use in the URL) (string, required) +- `owner` +- `brewIds` (list of shareId) +- `createdAt` (auto) +- `UpdatedAt` (auto) #### More substantial data structure -![image](https://github.com/naturalcrit/homebrewery/assets/2605467/90fa8be0-6728-46f9-a1e1-2d09975e292f) +![ERD of folders, users, and brews](https://github.com/naturalcrit/homebrewery/assets/2605467/03b4a90b-3c7f-4923-91db-dc77264473fd)