Massive/settings.ts

68 lines
1.0 KiB
TypeScript
Raw Permalink Normal View History

import { Column, Entity, PrimaryColumn } from "typeorm";
@Entity()
export default class Settings {
@PrimaryColumn("boolean")
2023-11-13 05:13:23 +00:00
alarm = false;
@Column("boolean")
2023-11-13 05:13:23 +00:00
vibrate = true;
@Column("text")
2023-11-13 05:13:23 +00:00
sound: string | null;
@Column("boolean")
2023-11-13 05:13:23 +00:00
notify = false;
@Column("boolean")
2023-11-13 05:13:23 +00:00
images = true;
@Column("boolean")
2023-11-13 05:13:23 +00:00
showUnit = true;
@Column("text")
2023-11-13 05:13:23 +00:00
lightColor: string | null;
@Column("text")
2023-11-13 05:13:23 +00:00
darkColor: string | null;
@Column("boolean")
2023-11-21 06:25:18 +00:00
steps = false;
@Column("text")
2023-11-13 05:13:23 +00:00
date: string | null;
@Column("boolean")
showDate = true;
@Column("text")
2023-11-13 05:13:23 +00:00
theme: string | null;
@Column("boolean")
2023-11-13 05:13:23 +00:00
noSound = false;
@Column("boolean")
2023-11-13 05:13:23 +00:00
backup = false;
@Column("text")
2023-11-13 05:13:23 +00:00
backupDir: string | null;
@Column("int")
2023-11-13 05:13:23 +00:00
duration: number | null;
@Column("text")
2023-11-13 05:13:23 +00:00
startup: string | null;
@Column("text")
autoConvert: string | null;
@Column("int")
defaultSets: number | null;
@Column("int")
defaultMinutes: number | null;
@Column("int")
defaultSeconds: number | null;
}