New structure
This commit is contained in:
7
src/constants/app.ts
Normal file
7
src/constants/app.ts
Normal 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
27
src/constants/model.ts
Normal 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
6
src/constants/table.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Dexie table names used by the DexieWrapper service.
|
||||
*/
|
||||
export enum AppTable {
|
||||
ACCOUNTS = "Accounts-Table",
|
||||
}
|
||||
Reference in New Issue
Block a user