From c50ab402ae58af6a332a79c7b73e052852f176c8 Mon Sep 17 00:00:00 2001 From: ericscheid Date: Mon, 4 Dec 2023 15:21:39 +1100 Subject: [PATCH] data model, erd --- Folders-etc.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Folders-etc.md b/Folders-etc.md index 1df76a8..7fcc954 100644 --- a/Folders-etc.md +++ b/Folders-etc.md @@ -37,6 +37,12 @@ Folders should appear before any brew in the user page A URI/link should be `/user/:userId/:folderName` + +### Data Model + +Folders exist as entities in their own table/collection. + +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). ### Data structure - `__Id` (mongo specific ID field, exists wether we create it or not) @@ -47,7 +53,7 @@ A URI/link should be `/user/:userId/:folderName` - `createdAt` - `UpdatedAt` - +https://gitter.ems.host/_matrix/media/v3/download/gitter.im/d336df8b6302961385db01f93e95f301c6cde3aa