add domain classes and enum files

add domain classes and enum files. update database mapping in domain
classes.