2021-04-25 21:22:35 +02:00
|
|
|
import { Account, Currency } from '@prisma/client';
|
2021-04-13 21:53:58 +02:00
|
|
|
|
|
|
|
import { Access } from './access.interface';
|
|
|
|
|
|
|
|
export interface User {
|
|
|
|
access: Access[];
|
2021-04-25 21:22:35 +02:00
|
|
|
accounts: Account[];
|
2021-04-13 21:53:58 +02:00
|
|
|
alias?: string;
|
|
|
|
id: string;
|
|
|
|
permissions: string[];
|
|
|
|
settings: UserSettings;
|
|
|
|
subscription: {
|
|
|
|
expiresAt: Date;
|
2021-04-18 19:01:31 +02:00
|
|
|
type: 'Trial';
|
2021-04-13 21:53:58 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface UserSettings {
|
|
|
|
baseCurrency: Currency;
|
|
|
|
locale: string;
|
|
|
|
}
|