Feature/extend pricing page (#130)
* Extend pricing page * Feature/align pricing page with subscription model (#135) * Align pricing page with subscription model * Update changelog
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
import { SubscriptionType } from '@ghostfolio/common/types/subscription.type';
|
||||
import { Account, Settings, User } from '@prisma/client';
|
||||
|
||||
export type UserWithSettings = User & {
|
||||
Account: Account[];
|
||||
Settings: Settings;
|
||||
subscription?: {
|
||||
expiresAt?: Date;
|
||||
type: SubscriptionType;
|
||||
};
|
||||
};
|
||||
|
@@ -12,6 +12,6 @@ export interface User {
|
||||
settings: UserSettings;
|
||||
subscription: {
|
||||
expiresAt: Date;
|
||||
type: 'Trial';
|
||||
type: 'Basic' | 'Premium';
|
||||
};
|
||||
}
|
||||
|
4
libs/common/src/lib/types/subscription.type.ts
Normal file
4
libs/common/src/lib/types/subscription.type.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export enum SubscriptionType {
|
||||
Basic = 'Basic',
|
||||
Premium = 'Premium'
|
||||
}
|
Reference in New Issue
Block a user