Closed peterdudfield closed 10 months ago
@braddf @devsjc I've written this up here.
Please add comments and questions on here (if you have any).
Note: sql relationships are sometimes hard, so happy to help out with that
I'm gona close this despite one task being open, but thats is stand alone
Would be good to move some of these mermaid diagrams to the readme.md
We want to upgrade the datamodel so we can have multiple clients viewing different sites.
Detailed Description
Currently, we have one client, that has all the sites attached to it.
We want to be able to do the following
Datamodel proposal:
user
is in onesitegroup
. Each site group can have multiple users.sitegroup
contains multiplesites
. Onesite
can be in multiplesitegroups
Context
public
sites, but we can assign them asitegroup
Possible Implementation
Client
table in codeSiteGroup
tableUser
toSiteGroup
relationship similar to thisSite
toSiteGroup
relationship similar to thisdev
pro