UNPKG

@cmk/fe_utils

Version:
37 lines (36 loc) 1.04 kB
export declare const USERS_MODEL_FIELD_DEFS: ({ readonly name: "user_id"; readonly data_type: "serial PRIMARY KEY"; readonly is_id_field: true; required?: undefined; } | { readonly name: "email"; readonly data_type: "varchar"; readonly required: true; readonly is_id_field?: undefined; } | { readonly name: "first_name"; readonly data_type: "varchar"; readonly required: true; readonly is_id_field?: undefined; } | { readonly name: "last_name"; readonly data_type: "varchar"; readonly required: true; readonly is_id_field?: undefined; } | { readonly name: "password"; readonly data_type: "varchar"; readonly required: true; readonly is_id_field?: undefined; })[]; type USERS_MODEL_FIELD_DEFS_TYPE = typeof USERS_MODEL_FIELD_DEFS; export type USERS_MODEL_FIELDNAME_TYPE = USERS_MODEL_FIELD_DEFS_TYPE[number]['name']; export type USER_TYPE = { user_id: number; email: string; first_name: string; last_name: string; password: string; }; export {};