Schema ``alias_directory`` ========================== Tables ------ alias_type ^^^^^^^^^^ +--------+---------+----------+-------------+ | Column | Type | Nullable | Description | +========+=========+==========+=============+ | id | integer | ✘ | | +--------+---------+----------+-------------+ | name | varchar | ✘ | | +--------+---------+----------+-------------+ Functions --------- alias_schema() ^^^^^^^^^^^^^^ initialize_alias_type_sql(alias_directory.alias_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ initialize_alias_type(alias_directory.alias_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ drop_alias_type_sql(alias_directory.alias_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ delete_alias_type(alias_directory.alias_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ get_alias(entity_id integer, alias_type_name text) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ define_alias_type(name name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Define a new alias type, but do not create a table for it. get_alias_type(name name) ^^^^^^^^^^^^^^^^^^^^^^^^^ create_alias_type(name name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Define a new alias type and created the table for storing the aliases. get_or_create_alias_type(name name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^