~jae/neos-headless-manager

c38652b4adc9490bb01efb3510e8e30c5a00e768 — Jae Lo Presti (DN0) 1 year, 5 months ago 07aaea9
dbTypes: switch to enums to ease integration with knex
1 files changed, 9 insertions(+), 9 deletions(-)

M src/types/dbTypes.ts
M src/types/dbTypes.ts => src/types/dbTypes.ts +9 -9
@@ 1,15 1,15 @@
export type ImageTable = {
export interface ImageTable {
    id: string,
    imageId: string,
    imageTag: string,
    image_id: string,
    image_tag: string,
}

export type ServersTable = {
export interface ServersTable {
    id: string,
    serverName: string,
    server_name: string,
    comment: string,
    containerId: string,
    imageId: string,
    container_id: string,
    image_id: string,
}

export enum userLevels {


@@ 19,9 19,9 @@ export enum userLevels {
    'HEADLESS'
}

export type UsersTable = {
export interface UsersTable {
    id: string,
    username: string,
    password: string,
    accessLevel: userLevels,
    access_level: userLevels
}