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:
Thomas
2021-06-02 20:15:53 +02:00
committed by GitHub
parent 7c22969de1
commit e7fbcd4fa0
11 changed files with 262 additions and 112 deletions

View File

@@ -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;
};
};

View File

@@ -12,6 +12,6 @@ export interface User {
settings: UserSettings;
subscription: {
expiresAt: Date;
type: 'Trial';
type: 'Basic' | 'Premium';
};
}

View File

@@ -0,0 +1,4 @@
export enum SubscriptionType {
Basic = 'Basic',
Premium = 'Premium'
}