Skip to content

Multitenancy #13

@therecluse26

Description

@therecluse26

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions