mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-15 04:32:13 +00:00
34 lines
671 B
TypeScript
34 lines
671 B
TypeScript
import {
|
|
Entity,
|
|
PrimaryGeneratedColumn,
|
|
Column,
|
|
CreateDateColumn,
|
|
UpdateDateColumn,
|
|
} from "typeorm";
|
|
|
|
@Entity("user_preferences")
|
|
export class UserPreferences {
|
|
@PrimaryGeneratedColumn()
|
|
id: number;
|
|
|
|
@Column("text", { nullable: true })
|
|
downloadsPath: string | null;
|
|
|
|
@Column("text", { default: "en" })
|
|
language: string;
|
|
|
|
@Column("boolean", { default: false })
|
|
downloadNotificationsEnabled: boolean;
|
|
|
|
@Column("boolean", { default: false })
|
|
repackUpdatesNotificationsEnabled: boolean;
|
|
|
|
@Column("boolean", { default: true })
|
|
telemetryEnabled: boolean;
|
|
|
|
@CreateDateColumn()
|
|
createdAt: Date;
|
|
|
|
@UpdateDateColumn()
|
|
updatedAt: Date;
|
|
}
|