Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions blog/stackauth-multitenancy/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ The target application we'll build is a Todo List. Its core functionalities are
- Regular members have full access to the todo lists they own.
- Regular members can view the other members' todo lists and manage their content, as long as the list is not private.

Besides Next.js and StackAuth, we'll build the app with two other essential pieces of weapon:
The essential weapons we'll use to build the app are:

- [Prisma](https://prisma.io): the ORM
- [ZenStack](https://zenstack.dev): the access control layer on top of Prisma
- [Next.js](https://nextjs.org/): the full-stack framework
- [StackAuth](https://stack-auth.com/): user authentication and team management
- [Prisma](https://prisma.io): the ORM that we use to talk to the database
- [ZenStack](https://zenstack.dev): the authorization layer above Prisma that handles data segregation and access control

You can find the link of the completed project at the end of the post.

Expand Down Expand Up @@ -89,6 +91,8 @@ With this one-liner, you'll have a set of fully working UI components for managi

![Team Management](./team-management.png)

Although StackAuth made it effortless to add "teams" feature into an app, it's up to you to determine how to use the user and team information to control data access. We'll see how to connect it with Prisma/ZenStack to achieve proper authorization.

## Setting up the database

Our user and team data are stored on StackAuth's side. We need to store the todo lists and items in our own database. In this section, we'll set up Prisma and ZenStack and create the database schema.
Expand Down