@brontosaurus/db
Version:
:ocean: Schema for brontosaurus
32 lines (31 loc) • 1.02 kB
TypeScript
export declare type RegisterInfoType = 'string' | 'number' | 'email' | 'password';
export declare type RegisterInfo = {
name: string;
type: RegisterInfoType;
};
export declare type Preferences = {
readonly registerInfo: RegisterInfo;
readonly prepared: boolean;
readonly mailerTransport: any;
readonly mailerSourceResetPassword: string;
readonly mailerSourceNotification: string;
readonly accountName: string;
readonly systemName: string;
readonly commandCenterName: string;
readonly globalAvatar: string;
readonly globalBackgroundImages: string[];
readonly globalFavicon: string;
readonly globalHelpLink: string;
readonly globalPrivacyPolicy: string;
readonly indexPage: string;
readonly entryPage: string;
};
export interface IPreferenceConfig {
name: string;
value: any;
}
export interface IPreference extends IPreferenceConfig {
active: boolean;
readonly createdAt: Date;
readonly updatedAt: Date;
}