Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: move to prisma #80

Merged
merged 3 commits into from
Apr 1, 2022
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@ dist

# Yarn files
.yarn/install-state.gz
prisma/migrations
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"dependencies": {
"@discordjs/builders": "^0.12.0",
"@discordjs/opus": "^0.5.3",
"@prisma/client": "^3.11.1",
"@sapphire/decorators": "^4.2.3",
"@sapphire/framework": "^3.0.0-next.9ed3d98.0",
"@sapphire/pieces": "^3.2.0",
Expand All @@ -51,6 +52,7 @@
"@types/common-tags": "^1.8.1",
"@types/node": "^17.0.17",
"prettier": "^2.5.1",
"prisma": "^3.11.1",
"tsup": "^5.12.1",
"typescript": "^4.5.5"
}
Expand Down
11 changes: 11 additions & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
provider = "prisma-client-js"
}

datasource db {
provider = "mysql"
url = env("DATABASE_URL")
}
42 changes: 42 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,34 @@ __metadata:
languageName: node
linkType: hard

"@prisma/client@npm:^3.11.1":
version: 3.11.1
resolution: "@prisma/client@npm:3.11.1"
dependencies:
"@prisma/engines-version": 3.11.1-1.1a2506facaf1a4727b7c26850735e88ec779dee9
peerDependencies:
prisma: "*"
peerDependenciesMeta:
prisma:
optional: true
checksum: 8750495b80f1fe0e2a70e439b6c8b5912ca04e6ca8baa1bfed0750bdfe130d8e0d29600414471873fce8683a92b74a45a175d68ab662d8a4f877c59430163e4e
languageName: node
linkType: hard

"@prisma/engines-version@npm:3.11.1-1.1a2506facaf1a4727b7c26850735e88ec779dee9":
version: 3.11.1-1.1a2506facaf1a4727b7c26850735e88ec779dee9
resolution: "@prisma/engines-version@npm:3.11.1-1.1a2506facaf1a4727b7c26850735e88ec779dee9"
checksum: ae3b4caf41f316b61c6b7b607fd9466ce5d8ff798ecb6877899a5ae65a55a62d02b83d4639dc6f48900bdf79702b08ff441772367809e01762de1fb74fb731c6
languageName: node
linkType: hard

"@prisma/engines@npm:3.11.1-1.1a2506facaf1a4727b7c26850735e88ec779dee9":
version: 3.11.1-1.1a2506facaf1a4727b7c26850735e88ec779dee9
resolution: "@prisma/engines@npm:3.11.1-1.1a2506facaf1a4727b7c26850735e88ec779dee9"
checksum: 87750ba42f2ad359e381818264acebc02d6e8fa61fe878c8e6e9ed2e0c2d13171e5c5e60ac9b380a9df54b6bc1c83750bbc6364ef09d8db7a613127f236a647b
languageName: node
linkType: hard

"@sapphire/async-queue@npm:^1.1.9":
version: 1.2.0
resolution: "@sapphire/async-queue@npm:1.2.0"
Expand Down Expand Up @@ -2358,6 +2386,7 @@ __metadata:
dependencies:
"@discordjs/builders": ^0.12.0
"@discordjs/opus": ^0.5.3
"@prisma/client": ^3.11.1
"@sapphire/decorators": ^4.2.3
"@sapphire/framework": ^3.0.0-next.9ed3d98.0
"@sapphire/pieces": ^3.2.0
Expand All @@ -2372,6 +2401,7 @@ __metadata:
discord.js: ^13.6.0
dotenv: ^16.0.0
prettier: ^2.5.1
prisma: ^3.11.1
sodium: ^3.0.2
tslib: ^2.3.1
tsup: ^5.12.1
Expand Down Expand Up @@ -2495,6 +2525,18 @@ __metadata:
languageName: node
linkType: hard

"prisma@npm:^3.11.1":
version: 3.11.1
resolution: "prisma@npm:3.11.1"
dependencies:
"@prisma/engines": 3.11.1-1.1a2506facaf1a4727b7c26850735e88ec779dee9
bin:
prisma: build/index.js
prisma2: build/index.js
checksum: 0dc24dad3b71ece4b5de69451f90bce20b3d52cd4b17626a725536daef0db07ee2bb08d4e50aa49332bd0b3a19a9e34bd230551bb0c859acea34f1aa508f17bd
languageName: node
linkType: hard

"process-nextick-args@npm:~2.0.0":
version: 2.0.1
resolution: "process-nextick-args@npm:2.0.1"
Expand Down