mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
chore: add SubscriptionInterval to user schema
This commit is contained in:
parent
f29fb8f7c3
commit
b7413091aa
@ -16,11 +16,19 @@ export const PLAN_NAMES = {
|
||||
[SubscriptionType.Flounder]: `Flounder`,
|
||||
}
|
||||
|
||||
export enum SubscriptionInterval {
|
||||
Month = 'month',
|
||||
Year = 'year',
|
||||
Life = 'life',
|
||||
}
|
||||
|
||||
export type UserFields<TExtra = {}> = BaseFields & {
|
||||
email: string
|
||||
verified: boolean
|
||||
isLegacy: boolean
|
||||
subscription: SubscriptionType
|
||||
subscription_interval: SubscriptionInterval
|
||||
subscription_quantity: number
|
||||
isStatsRole: boolean
|
||||
suspension: string
|
||||
} & TExtra
|
||||
|
Loading…
x
Reference in New Issue
Block a user