UNPKG

@cmk/fe_utils

Version:
52 lines (51 loc) 1.51 kB
export declare const SESSIONS_MODEL_FIELD_DEFS: ({ readonly name: "session_id"; readonly data_type: "serial PRIMARY KEY"; readonly is_id_field: true; required?: undefined; } | { readonly name: "session_token"; readonly data_type: "varchar"; readonly required: true; readonly is_id_field?: undefined; } | { readonly name: "email"; readonly data_type: "varchar"; readonly required: true; readonly is_id_field?: undefined; } | { readonly name: "expires_at"; readonly data_type: "timestamp"; readonly required: true; readonly is_id_field?: undefined; } | { readonly name: "gh_user_token"; readonly data_type: "varchar"; readonly required: true; readonly is_id_field?: undefined; } | { readonly name: "google_token"; readonly data_type: "varchar"; readonly required: true; readonly is_id_field?: undefined; } | { readonly name: "google_id_token"; readonly data_type: "varchar"; readonly required: true; readonly is_id_field?: undefined; } | { readonly name: "user_id"; readonly data_type: "int"; readonly required: true; readonly is_id_field?: undefined; })[]; type SESSIONS_MODEL_FIELD_DEFS_TYPE = typeof SESSIONS_MODEL_FIELD_DEFS; export type USERS_MODEL_FIELDNAME_TYPE = SESSIONS_MODEL_FIELD_DEFS_TYPE[number]['name']; export type SESSION_TYPE = { session_id: number; session_token: string; email: string; expires_at: string; gh_user_token: string; }; export {};