New structure

This commit is contained in:
Matthew Aaron Raymer
2022-12-14 17:06:16 +08:00
parent 0fa0936c59
commit c239906a96
12 changed files with 140 additions and 39 deletions

7
src/constants/app.ts Normal file
View File

@@ -0,0 +1,7 @@
/**
* Generic strings that could be used throughout the app.
*/
export enum AppString {
APP_NAME = "Kickstart for time",
VERSION = "0.1",
}

27
src/constants/model.ts Normal file
View File

@@ -0,0 +1,27 @@
/**
* Field names used by the tables for the DB objects.
*/
export enum Field {
// Setting
KEY = "key",
VALUE = "value",
// Log
SEVERITY = "severity",
LABEL = "label",
ERROR = "error",
// Accounts
NAME = "name",
DESCRIPTION = "description",
ID = "id",
IDENTITY = "indentity",
CREATED_TIMESTAMP = "createdTimestamp",
STATUS = "status",
}
export enum Severity {
DEBUG = "Debug",
INFO = "Info",
WARN = "Warning",
ERROR = "Error",
CRITICAL = "Critical",
}

6
src/constants/table.ts Normal file
View File

@@ -0,0 +1,6 @@
/**
* Dexie table names used by the DexieWrapper service.
*/
export enum AppTable {
ACCOUNTS = "Accounts-Table",
}