Skip to content

Commit

Permalink
refactor: use prisma client extensions instead of prisma-extended-models
Browse files Browse the repository at this point in the history
  • Loading branch information
schettn committed Dec 11, 2024
1 parent 915467c commit b8d4f3e
Show file tree
Hide file tree
Showing 25 changed files with 908 additions and 2,087 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"author": "Nico Schett <[email protected]>",
"dependencies": {
"@devoxa/prisma-relay-cursor-connection": "^3.1.2",
"@getcronit/prisma-extended-models": "^0.0.42",
"@getcronit/pylon": "^2.8.0",
"@hono/node-server": "^1.13.7",
"@prisma/client": "^5.22.0",
Expand Down
8 changes: 8 additions & 0 deletions prisma/migrations/20241211104911_dev/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
Warnings:
- You are about to drop the column `envelopeId` on the `EmailTemplate` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "EmailTemplate" DROP COLUMN "envelopeId";
3 changes: 1 addition & 2 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ model EmailTemplate {
verifyReplyTo Boolean?
transformer String?
envelope EmailEnvelope?
envelopeId String?
envelope EmailEnvelope?
parent EmailTemplate? @relation("EmailTemplateParent", fields: [parentId], references: [id])
parentId String? @db.Uuid
Expand Down
2 changes: 1 addition & 1 deletion pylon.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "@getcronit/pylon";
import { User } from "./src/repository/models/User";
import { User } from "./src/client";

declare module "@getcronit/pylon" {
interface Bindings {}
Expand Down
Loading

0 comments on commit b8d4f3e

Please sign in to comment.