mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-30 01:08:11 +00:00
data model, erd
@@ -38,6 +38,12 @@ Folders should appear before any brew in the user page
|
|||||||
A URI/link should be `/user/:userId/:folderName`
|
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
|
### 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)
|
||||||
@@ -47,7 +53,7 @@ A URI/link should be `/user/:userId/:folderName`
|
|||||||
- `createdAt`
|
- `createdAt`
|
||||||
- `UpdatedAt`
|
- `UpdatedAt`
|
||||||
|
|
||||||
|
https://gitter.ems.host/_matrix/media/v3/download/gitter.im/d336df8b6302961385db01f93e95f301c6cde3aa
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user