@cmk/fe_utils
Version:
frontend utility library
73 lines (72 loc) • 2.14 kB
TypeScript
export declare const DATA_CHANGES_MODEL_FIELD_DEFS: ({
readonly name: "data_change_id";
readonly data_type: "serial PRIMARY KEY";
readonly is_id_field: true;
required?: undefined;
} | {
readonly name: "attribute_name";
readonly data_type: "varchar";
readonly required: true;
readonly is_id_field?: undefined;
} | {
readonly name: "path";
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;
} | {
readonly name: "entity_name";
readonly data_type: "varchar";
readonly required: true;
readonly is_id_field?: undefined;
} | {
readonly name: "entity_instance_id";
readonly data_type: "int";
readonly required: true;
readonly is_id_field?: undefined;
} | {
readonly name: "old_value";
readonly data_type: "varchar";
readonly required: true;
readonly is_id_field?: undefined;
} | {
readonly name: "new_value";
readonly data_type: "varchar";
readonly required: true;
readonly is_id_field?: undefined;
} | {
readonly name: "change_datetime";
readonly data_type: "timestamp";
readonly required: true;
readonly is_id_field?: undefined;
} | {
readonly name: "sql_query";
readonly data_type: "varchar";
readonly required: true;
readonly is_id_field?: undefined;
} | {
readonly name: "change_type";
readonly data_type: "varchar";
readonly required: true;
readonly is_id_field?: undefined;
})[];
type DATA_CHANGES_MODEL_FIELD_DEFS_TYPE = typeof DATA_CHANGES_MODEL_FIELD_DEFS;
export type DATA_CHANGES__MODEL_FIELDNAME_TYPE = DATA_CHANGES_MODEL_FIELD_DEFS_TYPE[number]['name'];
export type DATA_CHANGES_TYPE = {
data_change_id: number;
attribute_name: string;
path: string[];
user_id: number;
entity_name: string;
entity_instance_id: number;
old_value: string;
new_value: string;
change_datetime: string;
sql_query: string;
change_type: 'main' | 'sub' | 'step';
};
export {};