export const NSQLiteTables = [
    "users",
    "users_ports",
    "users_allowed_services",
] as const

export type NSQLITE_TURBOCI_ADMIN_USERS = {
    /** 
     * The unique identifier of the record.
     */
    id?: number;
    /** 
     * The time when the record was created. (Unix Timestamp)
     */
    created_at?: number;
    /** 
     * The time when the record was updated. (Unix Timestamp)
     */
    updated_at?: number;
    first_name?: string;
    last_name?: string;
    email?: string;
    username?: string;
    image?: string;
    password?: string;
    is_super_admin?: number;
    all_deployment_access?: number;
}

export type NSQLITE_TURBOCI_ADMIN_USERS_PORTS = {
    /** 
     * The unique identifier of the record.
     */
    id?: number;
    /** 
     * The time when the record was created. (Unix Timestamp)
     */
    created_at?: number;
    /** 
     * The time when the record was updated. (Unix Timestamp)
     */
    updated_at?: number;
    user_id?: number;
    port?: number;
}

export type NSQLITE_TURBOCI_ADMIN_USERS_ALLOWED_SERVICES = {
    /** 
     * The unique identifier of the record.
     */
    id?: number;
    /** 
     * The time when the record was created. (Unix Timestamp)
     */
    created_at?: number;
    /** 
     * The time when the record was updated. (Unix Timestamp)
     */
    updated_at?: number;
    user_id?: number;
    service_name?: string;
}

export type NSQLITE_TURBOCI_ADMIN_ALL_TYPEDEFS = NSQLITE_TURBOCI_ADMIN_USERS & NSQLITE_TURBOCI_ADMIN_USERS_PORTS & NSQLITE_TURBOCI_ADMIN_USERS_ALLOWED_SERVICES