mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-03 08:28:35 +02:00
💵 Add ability to accept payments (#722)
This commit is contained in:
parent
1c7c8c7678
commit
2ccf705a2c
44 changed files with 2021 additions and 604 deletions
|
@ -25,20 +25,32 @@ model User {
|
|||
comments Comment[]
|
||||
polls Poll[]
|
||||
watcher Watcher[]
|
||||
events Event[]
|
||||
events Event[]
|
||||
|
||||
@@map("users")
|
||||
}
|
||||
|
||||
// model UserPaymentData {
|
||||
// userId String @id @map("user_id")
|
||||
// subscriptionId String @map("subscription_id")
|
||||
// subscriptionPlanId String @map("subscription_plan_id")
|
||||
// subscriptionEndDate DateTime @map("subscription_end_date")
|
||||
// subscriptionStatus String @map("subscription_status")
|
||||
// subscriptionUpdateUrl String @map("subscription_update_url")
|
||||
// subscriptionCancelUrl String @map("subscription_cancel_url")
|
||||
// }
|
||||
enum SubscriptionStatus {
|
||||
active
|
||||
paused
|
||||
deleted
|
||||
trialing
|
||||
past_due
|
||||
|
||||
@@map("subscription_status")
|
||||
}
|
||||
|
||||
model UserPaymentData {
|
||||
userId String @id @map("user_id")
|
||||
subscriptionId String @map("subscription_id")
|
||||
planId String @map("plan_id")
|
||||
endDate DateTime @map("end_date")
|
||||
status SubscriptionStatus
|
||||
updateUrl String @map("update_url")
|
||||
cancelUrl String @map("cancel_url")
|
||||
|
||||
@@map("user_payment_data")
|
||||
}
|
||||
|
||||
model UserPreferences {
|
||||
userId String @id @map("user_id")
|
||||
|
@ -98,7 +110,6 @@ model Event {
|
|||
@@map("events")
|
||||
}
|
||||
|
||||
|
||||
model Watcher {
|
||||
id Int @id @default(autoincrement())
|
||||
userId String @map("user_id")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue