Massive/settings.ts

59 lines
877 B
TypeScript
Raw 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-13 05:13:23 +00:00
steps = true;
@Column("text")
2023-11-13 05:13:23 +00:00
date: string | null;
@Column("boolean")
2023-11-13 05:13:23 +00:00
showDate = false;
@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;
}