@cmk/fe_utils
Version:
frontend utility library
62 lines (61 loc) • 1.89 kB
TypeScript
export type EntityJoiningType = {
entity_joining_id: number;
base_entity_id: number;
base_entity_field_id: number;
linked_entity_id: number;
linked_entity_field_id: number;
sql_join_type: string;
};
export type EntityJoiningPayloadType = EntityJoiningType & {
owner_user_id?: number;
html_project_id: string;
};
export declare const EntityJoiningDbFieldsDefs: ({
readonly name: "entity_joining_id";
readonly data_type: "serial PRIMARY KEY";
readonly is_id_field: true;
required?: undefined;
ui_type?: undefined;
} | {
readonly name: "base_entity_id";
readonly data_type: "integer references _entities(entity_id)";
readonly required: true;
readonly ui_type: "dropdown";
readonly is_id_field?: undefined;
} | {
readonly name: "base_entity_field_id";
readonly data_type: "integer references _entity_fields(entity_field_id)";
readonly required: true;
readonly ui_type: "dropdown";
readonly is_id_field?: undefined;
} | {
readonly name: "linked_entity_id";
readonly data_type: "integer references _entities(entity_id)";
readonly required: true;
readonly ui_type: "dropdown";
readonly is_id_field?: undefined;
} | {
readonly name: "linked_entity_field_id";
readonly data_type: "integer references _entity_fields(entity_field_id)";
readonly required: true;
readonly ui_type: "dropdown";
readonly is_id_field?: undefined;
} | {
name: "sql_join_type";
data_type: string;
ui_type: string;
readonly is_id_field?: undefined;
required?: undefined;
} | {
name: "owner_user_id";
data_type: string;
readonly is_id_field?: undefined;
required?: undefined;
ui_type?: undefined;
} | {
name: "html_project_id";
data_type: string;
readonly is_id_field?: undefined;
required?: undefined;
ui_type?: undefined;
})[];