Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multitenancy #13

Open
therecluse26 opened this issue Jul 24, 2023 · 0 comments
Open

Multitenancy #13

therecluse26 opened this issue Jul 24, 2023 · 0 comments

Comments

@therecluse26
Copy link
Owner

therecluse26 commented Jul 24, 2023

Make single-database multitenancy using stanci's tenancy package.

Allow for some data to not be scoped to tenants and available globally to all users (similar to how food tracker apps work with global nutritional info and things like that). Allow for globally available data such as seed types, animal types, etc. Allow users to publish globally or keep them private (maybe just have a public boolean flag on the table)

The general structure of multi-tenant apps is as follows

  • Central app - The main app through which all requests go
    • All global app configuration/management should happen here (managing tenants, super-admins, etc).
    • Request routing goes through here as well via middleware. Generally, tenant routing will happen via subdomain, but this is configurable.
  • Tenant app - This is the app that end-users have access to (myfarm.openstead.app). In this particular app, a tenant should correspond to a farm/homestead.

Figure out how to work a central public app like the public marketplace idea into this paradigm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant