mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-26 01:48:13 +00:00
Updated Folders etc (markdown)
@@ -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).
|
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
|
### Minimal Data structure
|
||||||
- `__Id` (mongo specific ID field, exists wether we create it or not)
|
- `__Id` (mongo specific ID field, exists wether we create it or not)
|
||||||
- `folderId` (nanoid, required, auto)
|
- `folderId` (nanoid, required, auto)
|
||||||
- `folderName` (to use in the URL) (string, required)
|
- `slug` (to use in the URL) (string, required)
|
||||||
- `owner` (can be multiple?)
|
- `owner`
|
||||||
- `brewIds`(shareId)
|
- `brewIds` (list of shareId)
|
||||||
- `createdAt`
|
- `createdAt` (auto)
|
||||||
- `UpdatedAt`
|
- `UpdatedAt` (auto)
|
||||||
|
|
||||||
#### More substantial data structure
|
#### More substantial data structure
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user