2023-08-12 03:22:50 +00:00
|
|
|
import { Column, Entity, PrimaryColumn } from "typeorm";
|
2022-10-31 00:20:36 +00:00
|
|
|
|
|
|
|
@Entity()
|
|
|
|
export default class Settings {
|
2023-08-12 03:22:50 +00:00
|
|
|
@PrimaryColumn("boolean")
|
2023-11-13 05:13:23 +00:00
|
|
|
alarm = false;
|
2022-10-31 00:20:36 +00:00
|
|
|
|
2023-08-12 03:22:50 +00:00
|
|
|
@Column("boolean")
|
2023-11-13 05:13:23 +00:00
|
|
|
vibrate = true;
|
2022-10-31 00:20:36 +00:00
|
|
|
|
2023-08-12 03:22:50 +00:00
|
|
|
@Column("text")
|
2023-11-13 05:13:23 +00:00
|
|
|
sound: string | null;
|
2022-10-31 00:20:36 +00:00
|
|
|
|
2023-08-12 03:22:50 +00:00
|
|
|
@Column("boolean")
|
2023-11-13 05:13:23 +00:00
|
|
|
notify = false;
|
2022-10-31 00:20:36 +00:00
|
|
|
|
2023-08-12 03:22:50 +00:00
|
|
|
@Column("boolean")
|
2023-11-13 05:13:23 +00:00
|
|
|
images = true;
|
2022-10-31 00:20:36 +00:00
|
|
|
|
2023-08-12 03:22:50 +00:00
|
|
|
@Column("boolean")
|
2023-11-13 05:13:23 +00:00
|
|
|
showUnit = true;
|
2022-10-31 00:20:36 +00:00
|
|
|
|
2023-08-12 03:22:50 +00:00
|
|
|
@Column("text")
|
2023-11-13 05:13:23 +00:00
|
|
|
lightColor: string | null;
|
2022-11-26 00:15:12 +00:00
|
|
|
|
2023-08-12 03:22:50 +00:00
|
|
|
@Column("text")
|
2023-11-13 05:13:23 +00:00
|
|
|
darkColor: string | null;
|
2022-10-31 00:20:36 +00:00
|
|
|
|
2023-08-12 03:22:50 +00:00
|
|
|
@Column("boolean")
|
2023-11-13 05:13:23 +00:00
|
|
|
steps = true;
|
2022-10-31 00:20:36 +00:00
|
|
|
|
2023-08-12 03:22:50 +00:00
|
|
|
@Column("text")
|
2023-11-13 05:13:23 +00:00
|
|
|
date: string | null;
|
2022-10-31 00:20:36 +00:00
|
|
|
|
2023-08-12 03:22:50 +00:00
|
|
|
@Column("boolean")
|
2023-11-13 05:13:23 +00:00
|
|
|
showDate = false;
|
2022-10-31 00:20:36 +00:00
|
|
|
|
2023-08-12 03:22:50 +00:00
|
|
|
@Column("text")
|
2023-11-13 05:13:23 +00:00
|
|
|
theme: string | null;
|
2022-10-31 00:20:36 +00:00
|
|
|
|
2023-08-12 03:22:50 +00:00
|
|
|
@Column("boolean")
|
2023-11-13 05:13:23 +00:00
|
|
|
noSound = false;
|
2022-10-31 00:20:36 +00:00
|
|
|
|
2023-08-12 03:22:50 +00:00
|
|
|
@Column("boolean")
|
2023-11-13 05:13:23 +00:00
|
|
|
backup = false;
|
2023-11-11 23:23:40 +00:00
|
|
|
|
2023-11-13 02:15:18 +00:00
|
|
|
@Column("text")
|
2023-11-13 05:13:23 +00:00
|
|
|
backupDir: string | null;
|
2023-11-13 02:15:18 +00:00
|
|
|
|
2023-11-11 23:23:40 +00:00
|
|
|
@Column("int")
|
2023-11-13 05:13:23 +00:00
|
|
|
duration: number | null;
|
2023-11-12 10:27:28 +00:00
|
|
|
|
|
|
|
@Column("text")
|
2023-11-13 05:13:23 +00:00
|
|
|
startup: string | null;
|
2022-08-24 00:01:39 +00:00
|
|
|
}
|