#JC-1512 First version of model.
#JC-1512 Fix of incorect DDL.
#JC-1512 Mapping entties to database.
Merge branch 'master' into master.plugin_model
#JC-1512 Tests were repaired.