Skip to content

Commit

Permalink
feat: bootstrap stripe webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
davideimola committed Apr 26, 2024
1 parent 61d1cf3 commit d71af17
Show file tree
Hide file tree
Showing 7 changed files with 319 additions and 11 deletions.
175 changes: 175 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"next": "^14.1.3",
"next-auth": "^4.24.6",
"nodemailer": "^6.9.13",
"pino": "^9.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-email": "2.1.1",
Expand Down
2 changes: 2 additions & 0 deletions prisma/migrations/20240426110344_add_new_status/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterEnum
ALTER TYPE "MembershipStatus" ADD VALUE 'WAITING';
23 changes: 12 additions & 11 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,19 @@ model Session {
}

model User {
id String @id @default(cuid())
name String?
role UserRole @default(member)
email String? @unique
emailVerified DateTime?
image String?
stripeCustomerId String?
accounts Account[]
sessions Session[]
memberships Membership[]
id String @id @default(cuid())
name String?
role UserRole @default(member)
email String? @unique
emailVerified DateTime?
image String?
stripeCustomerId String?
accounts Account[]
sessions Session[]
memberships Membership[]
}

enum UserRole{
enum UserRole {
member
admin
}
Expand All @@ -88,6 +88,7 @@ model VerificationToken {

enum MembershipStatus {
PENDING
WAITING
ACTIVE
REJECTED
UNSUBSCRIBED
Expand Down
Loading

0 comments on commit d71af17

Please sign in to comment.