sourcebot/packages/db
Michael Sukkarieh 7c187121c8
Add stripe billing logic (#190)
* add side bar nav in settings page

* improve styling of members page

* wip adding stripe checkout button

* wip onboarding flow

* add stripe subscription id to org

* save stripe session id and add manage subscription button in settings

* properly block access to pages if user isn't in an org

* wip add paywall

* Domain support

* add back paywall and also add support for incrememnting seat count on invite redemption

* prevent self invite

* action button styling in settings and toast on copy

* add ability to remove member from org

* move stripe product id to env var

* add await for blocking loop in backend

* add subscription info to billing page

* handle trial case in billing info page

* add trial duration indicator to nav bar

* check if domain starts or ends with dash

* remove unused no org component

* remove package lock file and fix prisma dep version

* revert dep version updates

* fix yarn.lock

* add auth and membership check to fetchSubscription

* properly handle invite redeem with no valid subscription case

* change back fetch subscription to not require org membership

* add back subscription check in invite redeem page

---------

Co-authored-by: bkellam <bshizzle1234@gmail.com>
2025-02-13 15:52:33 -08:00
..
prisma Add stripe billing logic (#190) 2025-02-13 15:52:33 -08:00
src SQL Database (#157) 2025-01-14 13:37:31 -08:00
.gitignore init (#176) 2025-01-23 14:06:40 -08:00
package.json SQL Database (#157) 2025-01-14 13:37:31 -08:00
README.md SQL Database (#157) 2025-01-14 13:37:31 -08:00
tsconfig.json SQL Database (#157) 2025-01-14 13:37:31 -08:00

This package contains the database schema (prisma/schema.prisma), migrations (prisma/migrations) and the client library for interacting with the database. Before making edits to the schema, please read about prisma's migration model to get an idea of how migrations work.