moved data structure to db

This commit is contained in:
0xdcarns
2023-03-03 14:23:51 -05:00
parent 6ab8efe9cb
commit 2e6eaac274
2 changed files with 37 additions and 16 deletions

View File

@@ -59,6 +59,8 @@ const (
HOSTS_TABLE_NAME = "hosts"
// ENROLLMENT_KEYS_TABLE_NAME - table name for enrollmentkeys
ENROLLMENT_KEYS_TABLE_NAME = "enrollmentkeys"
// HOST_ACTIONS_TABLE_NAME - table name for enrollmentkeys
HOST_ACTIONS_TABLE_NAME = "hostactions"
// == ERROR CONSTS ==
// NO_RECORD - no singular result found
@@ -141,6 +143,7 @@ func createTables() {
createTable(CACHE_TABLE_NAME)
createTable(HOSTS_TABLE_NAME)
createTable(ENROLLMENT_KEYS_TABLE_NAME)
createTable(HOST_ACTIONS_TABLE_NAME)
}
func createTable(tableName string) error {