mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +02:00
🗃️ Upgrade prisma, split schema and add user role (#1722)
This commit is contained in:
parent
cdf311fa27
commit
982fc39ac7
13 changed files with 461 additions and 457 deletions
|
@ -11,7 +11,7 @@
|
||||||
"i18n:scan": "i18next-scanner --config i18next-scanner.config.js"
|
"i18n:scan": "i18next-scanner --config i18next-scanner.config.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@prisma/client": "^6.4.1",
|
"@prisma/client": "^6.8.2",
|
||||||
"@rallly/billing": "workspace:*",
|
"@rallly/billing": "workspace:*",
|
||||||
"@rallly/database": "workspace:*",
|
"@rallly/database": "workspace:*",
|
||||||
"@rallly/languages": "workspace:*",
|
"@rallly/languages": "workspace:*",
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
"@next/bundle-analyzer": "^15.3.1",
|
"@next/bundle-analyzer": "^15.3.1",
|
||||||
"@next/env": "^15.3.1",
|
"@next/env": "^15.3.1",
|
||||||
"@panva/hkdf": "^1.2.1",
|
"@panva/hkdf": "^1.2.1",
|
||||||
"@prisma/client": "^6.4.1",
|
"@prisma/client": "^6.8.2",
|
||||||
"@radix-ui/react-radio-group": "^1.2.3",
|
"@radix-ui/react-radio-group": "^1.2.3",
|
||||||
"@radix-ui/react-select": "^2.2.2",
|
"@radix-ui/react-select": "^2.2.2",
|
||||||
"@radix-ui/react-slot": "^1.1.2",
|
"@radix-ui/react-slot": "^1.1.2",
|
||||||
|
|
|
@ -31,14 +31,14 @@
|
||||||
},
|
},
|
||||||
"prisma": {
|
"prisma": {
|
||||||
"seed": "pnpm --filter @rallly/database db:seed",
|
"seed": "pnpm --filter @rallly/database db:seed",
|
||||||
"schema": "./packages/database/prisma/schema.prisma"
|
"schema": "./packages/database/prisma"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "1.9.4",
|
"@biomejs/biome": "1.9.4",
|
||||||
"@playwright/test": "^1.52.0",
|
"@playwright/test": "^1.52.0",
|
||||||
"dotenv-cli": "^8.0.0",
|
"dotenv-cli": "^8.0.0",
|
||||||
"prettier": "^3.5.3",
|
"prettier": "^3.5.3",
|
||||||
"prisma": "^6.4.1",
|
"prisma": "^6.8.2",
|
||||||
"turbo": "^2.4.4",
|
"turbo": "^2.4.4",
|
||||||
"typescript": "^5.8.2",
|
"typescript": "^5.8.2",
|
||||||
"vitest": "^2.1.9"
|
"vitest": "^2.1.9"
|
||||||
|
|
|
@ -12,14 +12,14 @@
|
||||||
},
|
},
|
||||||
"exports": "./index.ts",
|
"exports": "./index.ts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@prisma/client": "^6.4.1",
|
"@prisma/client": "^6.8.2",
|
||||||
"dayjs": "^1.11.13"
|
"dayjs": "^1.11.13"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@faker-js/faker": "^7.6.0",
|
"@faker-js/faker": "^7.6.0",
|
||||||
"@rallly/tsconfig": "workspace:*",
|
"@rallly/tsconfig": "workspace:*",
|
||||||
"@types/node": "^20.11.1",
|
"@types/node": "^20.11.1",
|
||||||
"prisma": "^6.4.1",
|
"prisma": "^6.8.2",
|
||||||
"tsx": "^4.6.2"
|
"tsx": "^4.6.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
-- CreateEnum
|
||||||
|
CREATE TYPE "user_role" AS ENUM ('admin', 'user');
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "users" ADD COLUMN "role" "user_role" NOT NULL DEFAULT 'user';
|
|
@ -1,3 +1,3 @@
|
||||||
# Please do not edit this file manually
|
# Please do not edit this file manually
|
||||||
# It should be added in your version-control system (e.g., Git)
|
# It should be added in your version-control system (e.g., Git)
|
||||||
provider = "postgresql"
|
provider = "postgresql"
|
||||||
|
|
53
packages/database/prisma/models/billing.prisma
Normal file
53
packages/database/prisma/models/billing.prisma
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
model Subscription {
|
||||||
|
id String @id
|
||||||
|
priceId String @map("price_id")
|
||||||
|
amount Int
|
||||||
|
status SubscriptionStatus
|
||||||
|
active Boolean
|
||||||
|
currency String
|
||||||
|
interval SubscriptionInterval
|
||||||
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
|
periodStart DateTime @map("period_start")
|
||||||
|
periodEnd DateTime @map("period_end")
|
||||||
|
cancelAtPeriodEnd Boolean @default(false) @map("cancel_at_period_end")
|
||||||
|
userId String @unique @map("user_id")
|
||||||
|
|
||||||
|
user User @relation("UserToSubscription", fields: [userId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
|
@@map("subscriptions")
|
||||||
|
}
|
||||||
|
|
||||||
|
enum SubscriptionStatus {
|
||||||
|
incomplete
|
||||||
|
incomplete_expired
|
||||||
|
active
|
||||||
|
paused
|
||||||
|
trialing
|
||||||
|
past_due
|
||||||
|
canceled
|
||||||
|
unpaid
|
||||||
|
|
||||||
|
@@map("subscription_status")
|
||||||
|
}
|
||||||
|
|
||||||
|
enum SubscriptionInterval {
|
||||||
|
day
|
||||||
|
week
|
||||||
|
month
|
||||||
|
year
|
||||||
|
|
||||||
|
@@map("subscription_interval")
|
||||||
|
}
|
||||||
|
|
||||||
|
model PaymentMethod {
|
||||||
|
id String @id
|
||||||
|
userId String @map("user_id")
|
||||||
|
type String
|
||||||
|
data Json
|
||||||
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
|
updatedAt DateTime @updatedAt @map("updated_at")
|
||||||
|
|
||||||
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
|
@@map("payment_methods")
|
||||||
|
}
|
95
packages/database/prisma/models/event.prisma
Normal file
95
packages/database/prisma/models/event.prisma
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
/**
|
||||||
|
* Events are created when a user creates a new event
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
|
model Event {
|
||||||
|
id String @id @default(cuid())
|
||||||
|
userId String @map("user_id")
|
||||||
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||||
|
optionId String @map("option_id")
|
||||||
|
title String
|
||||||
|
start DateTime @db.Timestamp(0)
|
||||||
|
duration Int @default(0) @map("duration_minutes")
|
||||||
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
|
|
||||||
|
poll Poll?
|
||||||
|
|
||||||
|
@@index([userId], type: Hash)
|
||||||
|
@@map("events")
|
||||||
|
}
|
||||||
|
|
||||||
|
enum ScheduledEventStatus {
|
||||||
|
confirmed
|
||||||
|
canceled
|
||||||
|
unconfirmed
|
||||||
|
|
||||||
|
@@map("scheduled_event_status")
|
||||||
|
}
|
||||||
|
|
||||||
|
enum ScheduledEventInviteStatus {
|
||||||
|
pending
|
||||||
|
accepted
|
||||||
|
declined
|
||||||
|
tentative
|
||||||
|
|
||||||
|
@@map("scheduled_event_invite_status")
|
||||||
|
}
|
||||||
|
|
||||||
|
model ScheduledEvent {
|
||||||
|
id String @id @default(cuid())
|
||||||
|
userId String @map("user_id")
|
||||||
|
title String
|
||||||
|
description String?
|
||||||
|
location String?
|
||||||
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
|
updatedAt DateTime @updatedAt @map("updated_at")
|
||||||
|
status ScheduledEventStatus @default(confirmed)
|
||||||
|
timeZone String? @map("time_zone")
|
||||||
|
start DateTime
|
||||||
|
end DateTime
|
||||||
|
allDay Boolean @default(false) @map("all_day")
|
||||||
|
deletedAt DateTime? @map("deleted_at")
|
||||||
|
|
||||||
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||||
|
rescheduledDates RescheduledEventDate[]
|
||||||
|
invites ScheduledEventInvite[]
|
||||||
|
polls Poll[]
|
||||||
|
|
||||||
|
@@map("scheduled_events")
|
||||||
|
}
|
||||||
|
|
||||||
|
model RescheduledEventDate {
|
||||||
|
id String @id @default(cuid())
|
||||||
|
scheduledEventId String @map("scheduled_event_id")
|
||||||
|
start DateTime @map("start")
|
||||||
|
end DateTime @map("end")
|
||||||
|
allDay Boolean @default(false) @map("all_day")
|
||||||
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
|
|
||||||
|
scheduledEvent ScheduledEvent @relation(fields: [scheduledEventId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
|
@@index([scheduledEventId])
|
||||||
|
@@map("rescheduled_event_dates")
|
||||||
|
}
|
||||||
|
|
||||||
|
model ScheduledEventInvite {
|
||||||
|
id String @id @default(cuid())
|
||||||
|
scheduledEventId String @map("scheduled_event_id")
|
||||||
|
inviteeName String @map("invitee_name")
|
||||||
|
inviteeEmail String @map("invitee_email")
|
||||||
|
inviteeId String? @map("invitee_id")
|
||||||
|
inviteeTimeZone String? @map("invitee_time_zone")
|
||||||
|
status ScheduledEventInviteStatus @default(pending)
|
||||||
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
|
updatedAt DateTime @updatedAt @map("updated_at")
|
||||||
|
|
||||||
|
scheduledEvent ScheduledEvent @relation(fields: [scheduledEventId], references: [id], onDelete: Cascade)
|
||||||
|
user User? @relation(fields: [inviteeId], references: [id], onDelete: SetNull) // Optional relation to User model
|
||||||
|
|
||||||
|
@@unique([scheduledEventId, inviteeEmail])
|
||||||
|
@@unique([scheduledEventId, inviteeId])
|
||||||
|
@@index([scheduledEventId])
|
||||||
|
@@index([inviteeId])
|
||||||
|
@@index([inviteeEmail])
|
||||||
|
@@map("scheduled_event_invites")
|
||||||
|
}
|
166
packages/database/prisma/models/poll.prisma
Normal file
166
packages/database/prisma/models/poll.prisma
Normal file
|
@ -0,0 +1,166 @@
|
||||||
|
enum ParticipantVisibility {
|
||||||
|
full
|
||||||
|
scoresOnly
|
||||||
|
limited
|
||||||
|
|
||||||
|
@@map("participant_visibility")
|
||||||
|
}
|
||||||
|
|
||||||
|
enum PollStatus {
|
||||||
|
live
|
||||||
|
paused
|
||||||
|
finalized
|
||||||
|
|
||||||
|
@@map("poll_status")
|
||||||
|
}
|
||||||
|
|
||||||
|
model Poll {
|
||||||
|
id String @id @unique @map("id")
|
||||||
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
|
updatedAt DateTime @updatedAt @map("updated_at")
|
||||||
|
deadline DateTime?
|
||||||
|
title String
|
||||||
|
description String?
|
||||||
|
location String?
|
||||||
|
userId String? @map("user_id")
|
||||||
|
guestId String? @map("guest_id")
|
||||||
|
timeZone String? @map("time_zone")
|
||||||
|
status PollStatus @default(live)
|
||||||
|
deleted Boolean @default(false)
|
||||||
|
deletedAt DateTime? @map("deleted_at")
|
||||||
|
touchedAt DateTime @default(now()) @map("touched_at") // @deprecated
|
||||||
|
participantUrlId String @unique @map("participant_url_id")
|
||||||
|
adminUrlId String @unique @map("admin_url_id")
|
||||||
|
eventId String? @unique @map("event_id")
|
||||||
|
scheduledEventId String? @map("scheduled_event_id")
|
||||||
|
hideParticipants Boolean @default(false) @map("hide_participants")
|
||||||
|
hideScores Boolean @default(false) @map("hide_scores")
|
||||||
|
disableComments Boolean @default(false) @map("disable_comments")
|
||||||
|
requireParticipantEmail Boolean @default(false) @map("require_participant_email")
|
||||||
|
|
||||||
|
user User? @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||||
|
event Event? @relation(fields: [eventId], references: [id], onDelete: SetNull)
|
||||||
|
scheduledEvent ScheduledEvent? @relation(fields: [scheduledEventId], references: [id], onDelete: SetNull)
|
||||||
|
options Option[]
|
||||||
|
participants Participant[]
|
||||||
|
watchers Watcher[]
|
||||||
|
comments Comment[]
|
||||||
|
votes Vote[]
|
||||||
|
views PollView[]
|
||||||
|
|
||||||
|
@@index([guestId])
|
||||||
|
@@map("polls")
|
||||||
|
}
|
||||||
|
|
||||||
|
model Watcher {
|
||||||
|
id Int @id @default(autoincrement())
|
||||||
|
userId String @map("user_id")
|
||||||
|
pollId String @map("poll_id")
|
||||||
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
|
|
||||||
|
poll Poll @relation(fields: [pollId], references: [id], onDelete: Cascade)
|
||||||
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
|
@@index([pollId], type: Hash)
|
||||||
|
@@map("watchers")
|
||||||
|
}
|
||||||
|
|
||||||
|
model Participant {
|
||||||
|
id String @id @default(cuid())
|
||||||
|
name String
|
||||||
|
email String?
|
||||||
|
userId String? @map("user_id")
|
||||||
|
guestId String? @map("guest_id")
|
||||||
|
pollId String @map("poll_id")
|
||||||
|
locale String?
|
||||||
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
|
updatedAt DateTime? @updatedAt @map("updated_at")
|
||||||
|
deleted Boolean @default(false)
|
||||||
|
deletedAt DateTime? @map("deleted_at")
|
||||||
|
|
||||||
|
votes Vote[]
|
||||||
|
|
||||||
|
poll Poll @relation(fields: [pollId], references: [id], onDelete: Cascade)
|
||||||
|
user User? @relation(fields: [userId], references: [id], onDelete: SetNull)
|
||||||
|
|
||||||
|
@@index([guestId], type: Hash)
|
||||||
|
@@index([pollId], type: Hash)
|
||||||
|
@@map("participants")
|
||||||
|
}
|
||||||
|
|
||||||
|
model Option {
|
||||||
|
id String @id @default(cuid())
|
||||||
|
startTime DateTime @map("start_time") @db.Timestamp(0)
|
||||||
|
duration Int @default(0) @map("duration_minutes")
|
||||||
|
pollId String @map("poll_id")
|
||||||
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
|
|
||||||
|
votes Vote[]
|
||||||
|
|
||||||
|
poll Poll @relation(fields: [pollId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
|
@@index([pollId], type: Hash)
|
||||||
|
@@map("options")
|
||||||
|
}
|
||||||
|
|
||||||
|
enum VoteType {
|
||||||
|
yes
|
||||||
|
no
|
||||||
|
ifNeedBe
|
||||||
|
|
||||||
|
@@map("vote_type")
|
||||||
|
}
|
||||||
|
|
||||||
|
model Vote {
|
||||||
|
id String @id @default(cuid())
|
||||||
|
participantId String @map("participant_id")
|
||||||
|
optionId String @map("option_id")
|
||||||
|
pollId String @map("poll_id")
|
||||||
|
type VoteType @default(yes)
|
||||||
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
|
updatedAt DateTime? @updatedAt @map("updated_at")
|
||||||
|
|
||||||
|
participant Participant @relation(fields: [participantId], references: [id], onDelete: Cascade)
|
||||||
|
option Option @relation(fields: [optionId], references: [id], onDelete: Cascade)
|
||||||
|
poll Poll @relation(fields: [pollId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
|
@@index([pollId], type: Hash)
|
||||||
|
@@index([participantId], type: Hash)
|
||||||
|
@@index([optionId], type: Hash)
|
||||||
|
@@map("votes")
|
||||||
|
}
|
||||||
|
|
||||||
|
model Comment {
|
||||||
|
id String @id @default(cuid())
|
||||||
|
content String
|
||||||
|
pollId String @map("poll_id")
|
||||||
|
authorName String @map("author_name")
|
||||||
|
userId String? @map("user_id")
|
||||||
|
guestId String? @map("guest_id")
|
||||||
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
|
updatedAt DateTime? @updatedAt @map("updated_at")
|
||||||
|
|
||||||
|
poll Poll @relation(fields: [pollId], references: [id], onDelete: Cascade)
|
||||||
|
user User? @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
|
@@index([guestId], type: Hash)
|
||||||
|
@@index([pollId], type: Hash)
|
||||||
|
@@map("comments")
|
||||||
|
}
|
||||||
|
|
||||||
|
model PollView {
|
||||||
|
id String @id @default(cuid())
|
||||||
|
pollId String @map("poll_id")
|
||||||
|
ipAddress String? @map("ip_address")
|
||||||
|
userId String? @map("user_id")
|
||||||
|
userAgent String? @map("user_agent")
|
||||||
|
viewedAt DateTime @default(now()) @map("viewed_at")
|
||||||
|
|
||||||
|
poll Poll @relation(fields: [pollId], references: [id], onDelete: Cascade)
|
||||||
|
user User? @relation(fields: [userId], references: [id], onDelete: SetNull)
|
||||||
|
|
||||||
|
@@index([pollId], type: Hash)
|
||||||
|
@@index([userId], type: Hash)
|
||||||
|
@@index([viewedAt])
|
||||||
|
@@map("poll_views")
|
||||||
|
}
|
75
packages/database/prisma/models/user.prisma
Normal file
75
packages/database/prisma/models/user.prisma
Normal file
|
@ -0,0 +1,75 @@
|
||||||
|
enum TimeFormat {
|
||||||
|
hours12
|
||||||
|
hours24
|
||||||
|
|
||||||
|
@@map("time_format")
|
||||||
|
}
|
||||||
|
|
||||||
|
model Account {
|
||||||
|
id String @id @default(cuid())
|
||||||
|
userId String @map("user_id")
|
||||||
|
type String
|
||||||
|
provider String
|
||||||
|
providerAccountId String @map("provider_account_id")
|
||||||
|
refresh_token String? @db.Text
|
||||||
|
access_token String? @db.Text
|
||||||
|
expires_at Int?
|
||||||
|
token_type String?
|
||||||
|
scope String?
|
||||||
|
id_token String? @db.Text
|
||||||
|
session_state String?
|
||||||
|
|
||||||
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
|
@@unique([provider, providerAccountId])
|
||||||
|
@@map("accounts")
|
||||||
|
}
|
||||||
|
|
||||||
|
enum UserRole {
|
||||||
|
admin
|
||||||
|
user
|
||||||
|
|
||||||
|
@@map("user_role")
|
||||||
|
}
|
||||||
|
|
||||||
|
model User {
|
||||||
|
id String @id @default(cuid())
|
||||||
|
name String
|
||||||
|
email String @unique() @db.Citext
|
||||||
|
emailVerified DateTime? @map("email_verified")
|
||||||
|
image String?
|
||||||
|
timeZone String? @map("time_zone")
|
||||||
|
weekStart Int? @map("week_start")
|
||||||
|
timeFormat TimeFormat? @map("time_format")
|
||||||
|
locale String?
|
||||||
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
|
updatedAt DateTime? @updatedAt @map("updated_at")
|
||||||
|
customerId String? @map("customer_id")
|
||||||
|
banned Boolean @default(false)
|
||||||
|
bannedAt DateTime? @map("banned_at")
|
||||||
|
banReason String? @map("ban_reason")
|
||||||
|
role UserRole @default(user)
|
||||||
|
|
||||||
|
comments Comment[]
|
||||||
|
polls Poll[]
|
||||||
|
watcher Watcher[]
|
||||||
|
events Event[]
|
||||||
|
accounts Account[]
|
||||||
|
participants Participant[]
|
||||||
|
paymentMethods PaymentMethod[]
|
||||||
|
subscription Subscription? @relation("UserToSubscription")
|
||||||
|
pollViews PollView[]
|
||||||
|
scheduledEvents ScheduledEvent[]
|
||||||
|
scheduledEventInvites ScheduledEventInvite[]
|
||||||
|
|
||||||
|
@@map("users")
|
||||||
|
}
|
||||||
|
|
||||||
|
model VerificationToken {
|
||||||
|
identifier String @db.Citext
|
||||||
|
token String @unique
|
||||||
|
expires DateTime
|
||||||
|
|
||||||
|
@@unique([identifier, token])
|
||||||
|
@@map("verification_tokens")
|
||||||
|
}
|
|
@ -9,384 +9,3 @@ generator client {
|
||||||
binaryTargets = ["native"]
|
binaryTargets = ["native"]
|
||||||
previewFeatures = ["relationJoins"]
|
previewFeatures = ["relationJoins"]
|
||||||
}
|
}
|
||||||
|
|
||||||
enum TimeFormat {
|
|
||||||
hours12
|
|
||||||
hours24
|
|
||||||
|
|
||||||
@@map("time_format")
|
|
||||||
}
|
|
||||||
|
|
||||||
model Account {
|
|
||||||
id String @id @default(cuid())
|
|
||||||
userId String @map("user_id")
|
|
||||||
type String
|
|
||||||
provider String
|
|
||||||
providerAccountId String @map("provider_account_id")
|
|
||||||
refresh_token String? @db.Text
|
|
||||||
access_token String? @db.Text
|
|
||||||
expires_at Int?
|
|
||||||
token_type String?
|
|
||||||
scope String?
|
|
||||||
id_token String? @db.Text
|
|
||||||
session_state String?
|
|
||||||
|
|
||||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
||||||
|
|
||||||
@@unique([provider, providerAccountId])
|
|
||||||
@@map("accounts")
|
|
||||||
}
|
|
||||||
|
|
||||||
model User {
|
|
||||||
id String @id @default(cuid())
|
|
||||||
name String
|
|
||||||
email String @unique() @db.Citext
|
|
||||||
emailVerified DateTime? @map("email_verified")
|
|
||||||
image String?
|
|
||||||
timeZone String? @map("time_zone")
|
|
||||||
weekStart Int? @map("week_start")
|
|
||||||
timeFormat TimeFormat? @map("time_format")
|
|
||||||
locale String?
|
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
|
||||||
updatedAt DateTime? @updatedAt @map("updated_at")
|
|
||||||
customerId String? @map("customer_id")
|
|
||||||
banned Boolean @default(false)
|
|
||||||
bannedAt DateTime? @map("banned_at")
|
|
||||||
banReason String? @map("ban_reason")
|
|
||||||
|
|
||||||
comments Comment[]
|
|
||||||
polls Poll[]
|
|
||||||
watcher Watcher[]
|
|
||||||
events Event[]
|
|
||||||
accounts Account[]
|
|
||||||
participants Participant[]
|
|
||||||
paymentMethods PaymentMethod[]
|
|
||||||
subscription Subscription? @relation("UserToSubscription")
|
|
||||||
pollViews PollView[]
|
|
||||||
scheduledEvents ScheduledEvent[]
|
|
||||||
scheduledEventInvites ScheduledEventInvite[]
|
|
||||||
|
|
||||||
@@map("users")
|
|
||||||
}
|
|
||||||
|
|
||||||
enum SubscriptionStatus {
|
|
||||||
incomplete
|
|
||||||
incomplete_expired
|
|
||||||
active
|
|
||||||
paused
|
|
||||||
trialing
|
|
||||||
past_due
|
|
||||||
canceled
|
|
||||||
unpaid
|
|
||||||
|
|
||||||
@@map("subscription_status")
|
|
||||||
}
|
|
||||||
|
|
||||||
enum SubscriptionInterval {
|
|
||||||
day
|
|
||||||
week
|
|
||||||
month
|
|
||||||
year
|
|
||||||
|
|
||||||
@@map("subscription_interval")
|
|
||||||
}
|
|
||||||
|
|
||||||
model PaymentMethod {
|
|
||||||
id String @id
|
|
||||||
userId String @map("user_id")
|
|
||||||
type String
|
|
||||||
data Json
|
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
|
||||||
updatedAt DateTime @updatedAt @map("updated_at")
|
|
||||||
|
|
||||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
||||||
|
|
||||||
@@map("payment_methods")
|
|
||||||
}
|
|
||||||
|
|
||||||
model Subscription {
|
|
||||||
id String @id
|
|
||||||
priceId String @map("price_id")
|
|
||||||
amount Int
|
|
||||||
status SubscriptionStatus
|
|
||||||
active Boolean
|
|
||||||
currency String
|
|
||||||
interval SubscriptionInterval
|
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
|
||||||
periodStart DateTime @map("period_start")
|
|
||||||
periodEnd DateTime @map("period_end")
|
|
||||||
cancelAtPeriodEnd Boolean @default(false) @map("cancel_at_period_end")
|
|
||||||
userId String @unique @map("user_id")
|
|
||||||
|
|
||||||
user User @relation("UserToSubscription", fields: [userId], references: [id], onDelete: Cascade)
|
|
||||||
|
|
||||||
@@map("subscriptions")
|
|
||||||
}
|
|
||||||
|
|
||||||
enum ParticipantVisibility {
|
|
||||||
full
|
|
||||||
scoresOnly
|
|
||||||
limited
|
|
||||||
|
|
||||||
@@map("participant_visibility")
|
|
||||||
}
|
|
||||||
|
|
||||||
enum PollStatus {
|
|
||||||
live
|
|
||||||
paused
|
|
||||||
finalized
|
|
||||||
|
|
||||||
@@map("poll_status")
|
|
||||||
}
|
|
||||||
|
|
||||||
model Poll {
|
|
||||||
id String @id @unique @map("id")
|
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
|
||||||
updatedAt DateTime @updatedAt @map("updated_at")
|
|
||||||
deadline DateTime?
|
|
||||||
title String
|
|
||||||
description String?
|
|
||||||
location String?
|
|
||||||
userId String? @map("user_id")
|
|
||||||
guestId String? @map("guest_id")
|
|
||||||
timeZone String? @map("time_zone")
|
|
||||||
status PollStatus @default(live)
|
|
||||||
deleted Boolean @default(false)
|
|
||||||
deletedAt DateTime? @map("deleted_at")
|
|
||||||
touchedAt DateTime @default(now()) @map("touched_at") // @deprecated
|
|
||||||
participantUrlId String @unique @map("participant_url_id")
|
|
||||||
adminUrlId String @unique @map("admin_url_id")
|
|
||||||
eventId String? @unique @map("event_id")
|
|
||||||
scheduledEventId String? @map("scheduled_event_id")
|
|
||||||
hideParticipants Boolean @default(false) @map("hide_participants")
|
|
||||||
hideScores Boolean @default(false) @map("hide_scores")
|
|
||||||
disableComments Boolean @default(false) @map("disable_comments")
|
|
||||||
requireParticipantEmail Boolean @default(false) @map("require_participant_email")
|
|
||||||
|
|
||||||
user User? @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
||||||
event Event? @relation(fields: [eventId], references: [id], onDelete: SetNull)
|
|
||||||
scheduledEvent ScheduledEvent? @relation(fields: [scheduledEventId], references: [id], onDelete: SetNull)
|
|
||||||
options Option[]
|
|
||||||
participants Participant[]
|
|
||||||
watchers Watcher[]
|
|
||||||
comments Comment[]
|
|
||||||
votes Vote[]
|
|
||||||
views PollView[]
|
|
||||||
|
|
||||||
@@index([guestId])
|
|
||||||
@@map("polls")
|
|
||||||
}
|
|
||||||
|
|
||||||
model Event {
|
|
||||||
id String @id @default(cuid())
|
|
||||||
userId String @map("user_id")
|
|
||||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
||||||
optionId String @map("option_id")
|
|
||||||
title String
|
|
||||||
start DateTime @db.Timestamp(0)
|
|
||||||
duration Int @default(0) @map("duration_minutes")
|
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
|
||||||
|
|
||||||
poll Poll?
|
|
||||||
|
|
||||||
@@index([userId], type: Hash)
|
|
||||||
@@map("events")
|
|
||||||
}
|
|
||||||
|
|
||||||
model Watcher {
|
|
||||||
id Int @id @default(autoincrement())
|
|
||||||
userId String @map("user_id")
|
|
||||||
pollId String @map("poll_id")
|
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
|
||||||
|
|
||||||
poll Poll @relation(fields: [pollId], references: [id], onDelete: Cascade)
|
|
||||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
||||||
|
|
||||||
@@index([pollId], type: Hash)
|
|
||||||
@@map("watchers")
|
|
||||||
}
|
|
||||||
|
|
||||||
model Participant {
|
|
||||||
id String @id @default(cuid())
|
|
||||||
name String
|
|
||||||
email String?
|
|
||||||
userId String? @map("user_id")
|
|
||||||
guestId String? @map("guest_id")
|
|
||||||
pollId String @map("poll_id")
|
|
||||||
locale String?
|
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
|
||||||
updatedAt DateTime? @updatedAt @map("updated_at")
|
|
||||||
deleted Boolean @default(false)
|
|
||||||
deletedAt DateTime? @map("deleted_at")
|
|
||||||
|
|
||||||
votes Vote[]
|
|
||||||
|
|
||||||
poll Poll @relation(fields: [pollId], references: [id], onDelete: Cascade)
|
|
||||||
user User? @relation(fields: [userId], references: [id], onDelete: SetNull)
|
|
||||||
|
|
||||||
@@index([guestId], type: Hash)
|
|
||||||
@@index([pollId], type: Hash)
|
|
||||||
@@map("participants")
|
|
||||||
}
|
|
||||||
|
|
||||||
model Option {
|
|
||||||
id String @id @default(cuid())
|
|
||||||
startTime DateTime @map("start_time") @db.Timestamp(0)
|
|
||||||
duration Int @default(0) @map("duration_minutes")
|
|
||||||
pollId String @map("poll_id")
|
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
|
||||||
|
|
||||||
votes Vote[]
|
|
||||||
|
|
||||||
poll Poll @relation(fields: [pollId], references: [id], onDelete: Cascade)
|
|
||||||
|
|
||||||
@@index([pollId], type: Hash)
|
|
||||||
@@map("options")
|
|
||||||
}
|
|
||||||
|
|
||||||
enum VoteType {
|
|
||||||
yes
|
|
||||||
no
|
|
||||||
ifNeedBe
|
|
||||||
|
|
||||||
@@map("vote_type")
|
|
||||||
}
|
|
||||||
|
|
||||||
model Vote {
|
|
||||||
id String @id @default(cuid())
|
|
||||||
participantId String @map("participant_id")
|
|
||||||
optionId String @map("option_id")
|
|
||||||
pollId String @map("poll_id")
|
|
||||||
type VoteType @default(yes)
|
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
|
||||||
updatedAt DateTime? @updatedAt @map("updated_at")
|
|
||||||
|
|
||||||
participant Participant @relation(fields: [participantId], references: [id], onDelete: Cascade)
|
|
||||||
option Option @relation(fields: [optionId], references: [id], onDelete: Cascade)
|
|
||||||
poll Poll @relation(fields: [pollId], references: [id], onDelete: Cascade)
|
|
||||||
|
|
||||||
@@index([pollId], type: Hash)
|
|
||||||
@@index([participantId], type: Hash)
|
|
||||||
@@index([optionId], type: Hash)
|
|
||||||
@@map("votes")
|
|
||||||
}
|
|
||||||
|
|
||||||
model Comment {
|
|
||||||
id String @id @default(cuid())
|
|
||||||
content String
|
|
||||||
pollId String @map("poll_id")
|
|
||||||
authorName String @map("author_name")
|
|
||||||
userId String? @map("user_id")
|
|
||||||
guestId String? @map("guest_id")
|
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
|
||||||
updatedAt DateTime? @updatedAt @map("updated_at")
|
|
||||||
|
|
||||||
poll Poll @relation(fields: [pollId], references: [id], onDelete: Cascade)
|
|
||||||
user User? @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
||||||
|
|
||||||
@@index([guestId], type: Hash)
|
|
||||||
@@index([pollId], type: Hash)
|
|
||||||
@@map("comments")
|
|
||||||
}
|
|
||||||
|
|
||||||
model PollView {
|
|
||||||
id String @id @default(cuid())
|
|
||||||
pollId String @map("poll_id")
|
|
||||||
ipAddress String? @map("ip_address")
|
|
||||||
userId String? @map("user_id")
|
|
||||||
userAgent String? @map("user_agent")
|
|
||||||
viewedAt DateTime @default(now()) @map("viewed_at")
|
|
||||||
|
|
||||||
poll Poll @relation(fields: [pollId], references: [id], onDelete: Cascade)
|
|
||||||
user User? @relation(fields: [userId], references: [id], onDelete: SetNull)
|
|
||||||
|
|
||||||
@@index([pollId], type: Hash)
|
|
||||||
@@index([userId], type: Hash)
|
|
||||||
@@index([viewedAt])
|
|
||||||
@@map("poll_views")
|
|
||||||
}
|
|
||||||
|
|
||||||
model VerificationToken {
|
|
||||||
identifier String @db.Citext
|
|
||||||
token String @unique
|
|
||||||
expires DateTime
|
|
||||||
|
|
||||||
@@unique([identifier, token])
|
|
||||||
@@map("verification_tokens")
|
|
||||||
}
|
|
||||||
|
|
||||||
enum ScheduledEventStatus {
|
|
||||||
confirmed
|
|
||||||
canceled
|
|
||||||
unconfirmed
|
|
||||||
|
|
||||||
@@map("scheduled_event_status")
|
|
||||||
}
|
|
||||||
|
|
||||||
enum ScheduledEventInviteStatus {
|
|
||||||
pending
|
|
||||||
accepted
|
|
||||||
declined
|
|
||||||
tentative
|
|
||||||
|
|
||||||
@@map("scheduled_event_invite_status")
|
|
||||||
}
|
|
||||||
|
|
||||||
model ScheduledEvent {
|
|
||||||
id String @id @default(cuid())
|
|
||||||
userId String @map("user_id")
|
|
||||||
title String
|
|
||||||
description String?
|
|
||||||
location String?
|
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
|
||||||
updatedAt DateTime @updatedAt @map("updated_at")
|
|
||||||
status ScheduledEventStatus @default(confirmed)
|
|
||||||
timeZone String? @map("time_zone")
|
|
||||||
start DateTime
|
|
||||||
end DateTime
|
|
||||||
allDay Boolean @default(false) @map("all_day")
|
|
||||||
deletedAt DateTime? @map("deleted_at")
|
|
||||||
|
|
||||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
||||||
rescheduledDates RescheduledEventDate[]
|
|
||||||
invites ScheduledEventInvite[]
|
|
||||||
polls Poll[]
|
|
||||||
|
|
||||||
@@map("scheduled_events")
|
|
||||||
}
|
|
||||||
|
|
||||||
model RescheduledEventDate {
|
|
||||||
id String @id @default(cuid())
|
|
||||||
scheduledEventId String @map("scheduled_event_id")
|
|
||||||
start DateTime @map("start")
|
|
||||||
end DateTime @map("end")
|
|
||||||
allDay Boolean @default(false) @map("all_day")
|
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
|
||||||
|
|
||||||
scheduledEvent ScheduledEvent @relation(fields: [scheduledEventId], references: [id], onDelete: Cascade)
|
|
||||||
|
|
||||||
@@index([scheduledEventId])
|
|
||||||
@@map("rescheduled_event_dates")
|
|
||||||
}
|
|
||||||
|
|
||||||
model ScheduledEventInvite {
|
|
||||||
id String @id @default(cuid())
|
|
||||||
scheduledEventId String @map("scheduled_event_id")
|
|
||||||
inviteeName String @map("invitee_name")
|
|
||||||
inviteeEmail String @map("invitee_email")
|
|
||||||
inviteeId String? @map("invitee_id")
|
|
||||||
inviteeTimeZone String? @map("invitee_time_zone")
|
|
||||||
status ScheduledEventInviteStatus @default(pending)
|
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
|
||||||
updatedAt DateTime @updatedAt @map("updated_at")
|
|
||||||
|
|
||||||
scheduledEvent ScheduledEvent @relation(fields: [scheduledEventId], references: [id], onDelete: Cascade)
|
|
||||||
user User? @relation(fields: [inviteeId], references: [id], onDelete: SetNull) // Optional relation to User model
|
|
||||||
|
|
||||||
@@unique([scheduledEventId, inviteeEmail])
|
|
||||||
@@unique([scheduledEventId, inviteeId])
|
|
||||||
@@index([scheduledEventId])
|
|
||||||
@@index([inviteeId])
|
|
||||||
@@index([inviteeEmail])
|
|
||||||
@@map("scheduled_event_invites")
|
|
||||||
}
|
|
||||||
|
|
122
pnpm-lock.yaml
generated
122
pnpm-lock.yaml
generated
|
@ -21,8 +21,8 @@ importers:
|
||||||
specifier: ^3.5.3
|
specifier: ^3.5.3
|
||||||
version: 3.5.3
|
version: 3.5.3
|
||||||
prisma:
|
prisma:
|
||||||
specifier: ^6.4.1
|
specifier: ^6.8.2
|
||||||
version: 6.6.0(typescript@5.8.3)
|
version: 6.8.2(typescript@5.8.3)
|
||||||
turbo:
|
turbo:
|
||||||
specifier: ^2.4.4
|
specifier: ^2.4.4
|
||||||
version: 2.5.2
|
version: 2.5.2
|
||||||
|
@ -42,8 +42,8 @@ importers:
|
||||||
apps/landing:
|
apps/landing:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@prisma/client':
|
'@prisma/client':
|
||||||
specifier: ^6.4.1
|
specifier: ^6.8.2
|
||||||
version: 6.6.0(prisma@6.6.0(typescript@5.8.3))(typescript@5.8.3)
|
version: 6.8.2(prisma@6.8.2(typescript@5.8.3))(typescript@5.8.3)
|
||||||
'@rallly/billing':
|
'@rallly/billing':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/billing
|
version: link:../../packages/billing
|
||||||
|
@ -155,7 +155,7 @@ importers:
|
||||||
version: 1.3.20(zod@3.24.3)
|
version: 1.3.20(zod@3.24.3)
|
||||||
'@auth/prisma-adapter':
|
'@auth/prisma-adapter':
|
||||||
specifier: ^2.7.4
|
specifier: ^2.7.4
|
||||||
version: 2.9.0(@prisma/client@6.6.0(prisma@6.6.0(typescript@5.8.3))(typescript@5.8.3))(nodemailer@6.10.1)
|
version: 2.9.0(@prisma/client@6.8.2(prisma@6.8.2(typescript@5.8.3))(typescript@5.8.3))(nodemailer@6.10.1)
|
||||||
'@aws-sdk/client-s3':
|
'@aws-sdk/client-s3':
|
||||||
specifier: ^3.645.0
|
specifier: ^3.645.0
|
||||||
version: 3.797.0
|
version: 3.797.0
|
||||||
|
@ -175,8 +175,8 @@ importers:
|
||||||
specifier: ^1.2.1
|
specifier: ^1.2.1
|
||||||
version: 1.2.1
|
version: 1.2.1
|
||||||
'@prisma/client':
|
'@prisma/client':
|
||||||
specifier: ^6.4.1
|
specifier: ^6.8.2
|
||||||
version: 6.6.0(prisma@6.6.0(typescript@5.8.3))(typescript@5.8.3)
|
version: 6.8.2(prisma@6.8.2(typescript@5.8.3))(typescript@5.8.3)
|
||||||
'@radix-ui/react-radio-group':
|
'@radix-ui/react-radio-group':
|
||||||
specifier: ^1.2.3
|
specifier: ^1.2.3
|
||||||
version: 1.3.4(@types/react-dom@19.1.2(@types/react@19.1.2))(@types/react@19.1.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
|
version: 1.3.4(@types/react-dom@19.1.2(@types/react@19.1.2))(@types/react@19.1.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
|
||||||
|
@ -453,8 +453,8 @@ importers:
|
||||||
packages/database:
|
packages/database:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@prisma/client':
|
'@prisma/client':
|
||||||
specifier: ^6.4.1
|
specifier: ^6.8.2
|
||||||
version: 6.6.0(prisma@6.6.0(typescript@5.8.3))(typescript@5.8.3)
|
version: 6.8.2(prisma@6.8.2(typescript@5.8.3))(typescript@5.8.3)
|
||||||
dayjs:
|
dayjs:
|
||||||
specifier: ^1.11.13
|
specifier: ^1.11.13
|
||||||
version: 1.11.13
|
version: 1.11.13
|
||||||
|
@ -469,8 +469,8 @@ importers:
|
||||||
specifier: ^20.11.1
|
specifier: ^20.11.1
|
||||||
version: 20.17.50
|
version: 20.17.50
|
||||||
prisma:
|
prisma:
|
||||||
specifier: ^6.4.1
|
specifier: ^6.8.2
|
||||||
version: 6.6.0(typescript@5.8.3)
|
version: 6.8.2(typescript@5.8.3)
|
||||||
tsx:
|
tsx:
|
||||||
specifier: ^4.6.2
|
specifier: ^4.6.2
|
||||||
version: 4.19.3
|
version: 4.19.3
|
||||||
|
@ -2620,8 +2620,8 @@ packages:
|
||||||
'@popperjs/core@2.11.8':
|
'@popperjs/core@2.11.8':
|
||||||
resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==}
|
resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==}
|
||||||
|
|
||||||
'@prisma/client@6.6.0':
|
'@prisma/client@6.8.2':
|
||||||
resolution: {integrity: sha512-vfp73YT/BHsWWOAuthKQ/1lBgESSqYqAWZEYyTdGXyFAHpmewwWL2Iz6ErIzkj4aHbuc6/cGSsE6ZY+pBO04Cg==}
|
resolution: {integrity: sha512-5II+vbyzv4si6Yunwgkj0qT/iY0zyspttoDrL3R4BYgLdp42/d2C8xdi9vqkrYtKt9H32oFIukvyw3Koz5JoDg==}
|
||||||
engines: {node: '>=18.18'}
|
engines: {node: '>=18.18'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
prisma: '*'
|
prisma: '*'
|
||||||
|
@ -2632,23 +2632,23 @@ packages:
|
||||||
typescript:
|
typescript:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@prisma/config@6.6.0':
|
'@prisma/config@6.8.2':
|
||||||
resolution: {integrity: sha512-d8FlXRHsx72RbN8nA2QCRORNv5AcUnPXgtPvwhXmYkQSMF/j9cKaJg+9VcUzBRXGy9QBckNzEQDEJZdEOZ+ubA==}
|
resolution: {integrity: sha512-ZJY1fF4qRBPdLQ/60wxNtX+eu89c3AkYEcP7L3jkp0IPXCNphCYxikTg55kPJLDOG6P0X+QG5tCv6CmsBRZWFQ==}
|
||||||
|
|
||||||
'@prisma/debug@6.6.0':
|
'@prisma/debug@6.8.2':
|
||||||
resolution: {integrity: sha512-DL6n4IKlW5k2LEXzpN60SQ1kP/F6fqaCgU/McgaYsxSf43GZ8lwtmXLke9efS+L1uGmrhtBUP4npV/QKF8s2ZQ==}
|
resolution: {integrity: sha512-4muBSSUwJJ9BYth5N8tqts8JtiLT8QI/RSAzEogwEfpbYGFo9mYsInsVo8dqXdPO2+Rm5OG5q0qWDDE3nyUbVg==}
|
||||||
|
|
||||||
'@prisma/engines-version@6.6.0-53.f676762280b54cd07c770017ed3711ddde35f37a':
|
'@prisma/engines-version@6.8.0-43.2060c79ba17c6bb9f5823312b6f6b7f4a845738e':
|
||||||
resolution: {integrity: sha512-JzRaQ5Em1fuEcbR3nUsMNYaIYrOT1iMheenjCvzZblJcjv/3JIuxXN7RCNT5i6lRkLodW5ojCGhR7n5yvnNKrw==}
|
resolution: {integrity: sha512-Rkik9lMyHpFNGaLpPF3H5q5TQTkm/aE7DsGM5m92FZTvWQsvmi6Va8On3pWvqLHOt5aPUvFb/FeZTmphI4CPiQ==}
|
||||||
|
|
||||||
'@prisma/engines@6.6.0':
|
'@prisma/engines@6.8.2':
|
||||||
resolution: {integrity: sha512-nC0IV4NHh7500cozD1fBoTwTD1ydJERndreIjpZr/S3mno3P6tm8qnXmIND5SwUkibNeSJMpgl4gAnlqJ/gVlg==}
|
resolution: {integrity: sha512-XqAJ//LXjqYRQ1RRabs79KOY4+v6gZOGzbcwDQl0D6n9WBKjV7qdrbd042CwSK0v0lM9MSHsbcFnU2Yn7z8Zlw==}
|
||||||
|
|
||||||
'@prisma/fetch-engine@6.6.0':
|
'@prisma/fetch-engine@6.8.2':
|
||||||
resolution: {integrity: sha512-Ohfo8gKp05LFLZaBlPUApM0M7k43a0jmo86YY35u1/4t+vuQH9mRGU7jGwVzGFY3v+9edeb/cowb1oG4buM1yw==}
|
resolution: {integrity: sha512-lCvikWOgaLOfqXGacEKSNeenvj0n3qR5QvZUOmPE2e1Eh8cMYSobxonCg9rqM6FSdTfbpqp9xwhSAOYfNqSW0g==}
|
||||||
|
|
||||||
'@prisma/get-platform@6.6.0':
|
'@prisma/get-platform@6.8.2':
|
||||||
resolution: {integrity: sha512-3qCwmnT4Jh5WCGUrkWcc6VZaw0JY7eWN175/pcb5Z6FiLZZ3ygY93UX0WuV41bG51a6JN/oBH0uywJ90Y+V5eA==}
|
resolution: {integrity: sha512-vXSxyUgX3vm1Q70QwzwkjeYfRryIvKno1SXbIqwSptKwqKzskINnDUcx85oX+ys6ooN2ATGSD0xN2UTfg6Zcow==}
|
||||||
|
|
||||||
'@prisma/instrumentation@6.6.0':
|
'@prisma/instrumentation@6.6.0':
|
||||||
resolution: {integrity: sha512-M/a6njz3hbf2oucwdbjNKrSMLuyMCwgDrmTtkF1pm4Nm7CU45J/Hd6lauF2CDACTUYzu3ymcV7P0ZAhIoj6WRw==}
|
resolution: {integrity: sha512-M/a6njz3hbf2oucwdbjNKrSMLuyMCwgDrmTtkF1pm4Nm7CU45J/Hd6lauF2CDACTUYzu3ymcV7P0ZAhIoj6WRw==}
|
||||||
|
@ -4999,11 +4999,6 @@ packages:
|
||||||
esast-util-from-js@2.0.1:
|
esast-util-from-js@2.0.1:
|
||||||
resolution: {integrity: sha512-8Ja+rNJ0Lt56Pcf3TAmpBZjmx8ZcK5Ts4cAzIOjsjevg9oSXJnl6SUQ2EevU8tv3h6ZLWmoKL5H4fgWvdvfETw==}
|
resolution: {integrity: sha512-8Ja+rNJ0Lt56Pcf3TAmpBZjmx8ZcK5Ts4cAzIOjsjevg9oSXJnl6SUQ2EevU8tv3h6ZLWmoKL5H4fgWvdvfETw==}
|
||||||
|
|
||||||
esbuild-register@3.6.0:
|
|
||||||
resolution: {integrity: sha512-H2/S7Pm8a9CL1uhp9OvjwrBh5Pvx0H8qVOxNu8Wed9Y7qv56MPtq+GGM8RJpq6glYJn9Wspr8uw7l55uyinNeg==}
|
|
||||||
peerDependencies:
|
|
||||||
esbuild: '>=0.12 <1'
|
|
||||||
|
|
||||||
esbuild@0.21.5:
|
esbuild@0.21.5:
|
||||||
resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==}
|
resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
@ -5517,6 +5512,10 @@ packages:
|
||||||
resolution: {integrity: sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==}
|
resolution: {integrity: sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
|
jiti@2.4.2:
|
||||||
|
resolution: {integrity: sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
jose@5.10.0:
|
jose@5.10.0:
|
||||||
resolution: {integrity: sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg==}
|
resolution: {integrity: sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg==}
|
||||||
|
|
||||||
|
@ -6261,8 +6260,8 @@ packages:
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
prisma@6.6.0:
|
prisma@6.8.2:
|
||||||
resolution: {integrity: sha512-SYCUykz+1cnl6Ugd8VUvtTQq5+j1Q7C0CtzKPjQ8JyA2ALh0EEJkMCS+KgdnvKW1lrxjtjCyJSHOOT236mENYg==}
|
resolution: {integrity: sha512-JNricTXQxzDtRS7lCGGOB4g5DJ91eg3nozdubXze3LpcMl1oWwcFddrj++Up3jnRE6X/3gB/xz3V+ecBk/eEGA==}
|
||||||
engines: {node: '>=18.18'}
|
engines: {node: '>=18.18'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
|
@ -7401,10 +7400,10 @@ snapshots:
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
nodemailer: 6.10.1
|
nodemailer: 6.10.1
|
||||||
|
|
||||||
'@auth/prisma-adapter@2.9.0(@prisma/client@6.6.0(prisma@6.6.0(typescript@5.8.3))(typescript@5.8.3))(nodemailer@6.10.1)':
|
'@auth/prisma-adapter@2.9.0(@prisma/client@6.8.2(prisma@6.8.2(typescript@5.8.3))(typescript@5.8.3))(nodemailer@6.10.1)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@auth/core': 0.39.0(nodemailer@6.10.1)
|
'@auth/core': 0.39.0(nodemailer@6.10.1)
|
||||||
'@prisma/client': 6.6.0(prisma@6.6.0(typescript@5.8.3))(typescript@5.8.3)
|
'@prisma/client': 6.8.2(prisma@6.8.2(typescript@5.8.3))(typescript@5.8.3)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- '@simplewebauthn/browser'
|
- '@simplewebauthn/browser'
|
||||||
- '@simplewebauthn/server'
|
- '@simplewebauthn/server'
|
||||||
|
@ -9551,38 +9550,35 @@ snapshots:
|
||||||
|
|
||||||
'@popperjs/core@2.11.8': {}
|
'@popperjs/core@2.11.8': {}
|
||||||
|
|
||||||
'@prisma/client@6.6.0(prisma@6.6.0(typescript@5.8.3))(typescript@5.8.3)':
|
'@prisma/client@6.8.2(prisma@6.8.2(typescript@5.8.3))(typescript@5.8.3)':
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
prisma: 6.6.0(typescript@5.8.3)
|
prisma: 6.8.2(typescript@5.8.3)
|
||||||
typescript: 5.8.3
|
typescript: 5.8.3
|
||||||
|
|
||||||
'@prisma/config@6.6.0':
|
'@prisma/config@6.8.2':
|
||||||
dependencies:
|
dependencies:
|
||||||
esbuild: 0.25.3
|
jiti: 2.4.2
|
||||||
esbuild-register: 3.6.0(esbuild@0.25.3)
|
|
||||||
transitivePeerDependencies:
|
|
||||||
- supports-color
|
|
||||||
|
|
||||||
'@prisma/debug@6.6.0': {}
|
'@prisma/debug@6.8.2': {}
|
||||||
|
|
||||||
'@prisma/engines-version@6.6.0-53.f676762280b54cd07c770017ed3711ddde35f37a': {}
|
'@prisma/engines-version@6.8.0-43.2060c79ba17c6bb9f5823312b6f6b7f4a845738e': {}
|
||||||
|
|
||||||
'@prisma/engines@6.6.0':
|
'@prisma/engines@6.8.2':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@prisma/debug': 6.6.0
|
'@prisma/debug': 6.8.2
|
||||||
'@prisma/engines-version': 6.6.0-53.f676762280b54cd07c770017ed3711ddde35f37a
|
'@prisma/engines-version': 6.8.0-43.2060c79ba17c6bb9f5823312b6f6b7f4a845738e
|
||||||
'@prisma/fetch-engine': 6.6.0
|
'@prisma/fetch-engine': 6.8.2
|
||||||
'@prisma/get-platform': 6.6.0
|
'@prisma/get-platform': 6.8.2
|
||||||
|
|
||||||
'@prisma/fetch-engine@6.6.0':
|
'@prisma/fetch-engine@6.8.2':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@prisma/debug': 6.6.0
|
'@prisma/debug': 6.8.2
|
||||||
'@prisma/engines-version': 6.6.0-53.f676762280b54cd07c770017ed3711ddde35f37a
|
'@prisma/engines-version': 6.8.0-43.2060c79ba17c6bb9f5823312b6f6b7f4a845738e
|
||||||
'@prisma/get-platform': 6.6.0
|
'@prisma/get-platform': 6.8.2
|
||||||
|
|
||||||
'@prisma/get-platform@6.6.0':
|
'@prisma/get-platform@6.8.2':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@prisma/debug': 6.6.0
|
'@prisma/debug': 6.8.2
|
||||||
|
|
||||||
'@prisma/instrumentation@6.6.0(@opentelemetry/api@1.9.0)':
|
'@prisma/instrumentation@6.6.0(@opentelemetry/api@1.9.0)':
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -12083,13 +12079,6 @@ snapshots:
|
||||||
esast-util-from-estree: 2.0.0
|
esast-util-from-estree: 2.0.0
|
||||||
vfile-message: 4.0.2
|
vfile-message: 4.0.2
|
||||||
|
|
||||||
esbuild-register@3.6.0(esbuild@0.25.3):
|
|
||||||
dependencies:
|
|
||||||
debug: 4.4.0
|
|
||||||
esbuild: 0.25.3
|
|
||||||
transitivePeerDependencies:
|
|
||||||
- supports-color
|
|
||||||
|
|
||||||
esbuild@0.21.5:
|
esbuild@0.21.5:
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@esbuild/aix-ppc64': 0.21.5
|
'@esbuild/aix-ppc64': 0.21.5
|
||||||
|
@ -12720,6 +12709,8 @@ snapshots:
|
||||||
|
|
||||||
jiti@1.21.7: {}
|
jiti@1.21.7: {}
|
||||||
|
|
||||||
|
jiti@2.4.2: {}
|
||||||
|
|
||||||
jose@5.10.0: {}
|
jose@5.10.0: {}
|
||||||
|
|
||||||
jose@6.0.10: {}
|
jose@6.0.10: {}
|
||||||
|
@ -13567,15 +13558,12 @@ snapshots:
|
||||||
|
|
||||||
prettier@3.5.3: {}
|
prettier@3.5.3: {}
|
||||||
|
|
||||||
prisma@6.6.0(typescript@5.8.3):
|
prisma@6.8.2(typescript@5.8.3):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@prisma/config': 6.6.0
|
'@prisma/config': 6.8.2
|
||||||
'@prisma/engines': 6.6.0
|
'@prisma/engines': 6.8.2
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
fsevents: 2.3.3
|
|
||||||
typescript: 5.8.3
|
typescript: 5.8.3
|
||||||
transitivePeerDependencies:
|
|
||||||
- supports-color
|
|
||||||
|
|
||||||
prismjs@1.30.0: {}
|
prismjs@1.30.0: {}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
packages:
|
packages:
|
||||||
- 'apps/*'
|
- apps/*
|
||||||
- 'packages/*'
|
- packages/*
|
||||||
|
|
||||||
|
onlyBuiltDependencies:
|
||||||
|
- '@prisma/client'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue