cal/packages/prisma/package.json
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

41 lines
1.0 KiB
JSON

{
"name": "@calcom/prisma",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "yarn generate-schemas",
"clean": "rm -rf .turbo && rm -rf node_modules",
"db-deploy": "yarn prisma migrate deploy",
"db-migrate": "yarn prisma migrate dev",
"db-nuke": "docker-compose down --volumes --remove-orphans",
"db-reset": "run-s db-nuke db-setup",
"db-seed": "yarn prisma db seed",
"db-setup": "run-s db-up db-deploy db-seed",
"db-studio": "yarn prisma studio",
"db-up": "docker-compose up -d",
"deploy": "run-s build db-deploy",
"dx": "yarn db-setup",
"generate-schemas": "prisma generate"
},
"devDependencies": {
"npm-run-all": "^4.1.5",
"prisma": "3.9.2",
"ts-node": "^10.6.0",
"zod-prisma": "^0.5.4"
},
"dependencies": {
"@calcom/lib": "*",
"@prisma/client": "3.9.2"
},
"main": "index.ts",
"types": "index.d.ts",
"files": [
"client",
"zod",
"zod-utils.ts"
],
"prisma": {
"seed": "ts-node ./seed.ts"
}
}