->(database) do
database.define_relation(name: :lexical_children, inverse_of: :lexical_parent)
database.define_relation(name: :ancestors, inverse_of: :descendants)
database.define_relation(name: :referenced_scope, inverse_of: :referenced_by)
database.define_relation(name: :located_in_scope, inverse_of: :contains_many_references)
database.define_relation(name: :defines_scopes, inverse_of: :scope_defined_in_file)
database.define_relation(name: :defines_references, inverse_of: :reference_defined_in_file)
end