mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-22 08:58:11 +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).
|
||||
|
||||
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
|
||||

|
||||

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