fixed setup database for relation
megre
fix tests
added templates for code generator
merge
added code generator for enum