calcom/packages/prisma
Omar López 0a8509d721
Admin/team billing downgrader (#2040)
* downgrade func

* fix security hole lol

* fix query conditions

* - set to trial not free
- auto create stripe customer if missing
- fix production check

* Extracts downgrade logic to script, fixes ts-node conflicts with prisma

* Adds trialEndsAt field to users

* Updates trial/downgrade logic

* Typo

* Legibility fixes

* Update team-billing.ts

* Legibility improvements

Co-authored-by: Jamie <ijamespine@me.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-03-03 19:29:19 +00:00
..
client Extract prisma to it's own package (#1823) 2022-02-15 13:30:52 -07:00
migrations Admin/team billing downgrader (#2040) 2022-03-03 19:29:19 +00:00
zod Revert "Revert "Webhooks to support event type association"" (#2033) 2022-03-02 09:24:57 -07:00
.env.example Extract prisma to it's own package (#1823) 2022-02-15 13:30:52 -07:00
docker-compose.yml Extract prisma to it's own package (#1823) 2022-02-15 13:30:52 -07:00
index.ts Admin/team billing downgrader (#2040) 2022-03-03 19:29:19 +00:00
package.json Admin/team billing downgrader (#2040) 2022-03-03 19:29:19 +00:00
schema.prisma Admin/team billing downgrader (#2040) 2022-03-03 19:29:19 +00:00
seed.ts Always disconnect + remove redundant success message (#1945) 2022-02-22 12:04:55 -07:00
zod-utils.ts Build fixes (#1929) 2022-02-21 18:45:35 +00:00