Structure application-layer: rest-api application-config domain-layer: core util infrastructure-layer: persistence persistence inmemory-persistence hibernate-postgres-json-support db-migrations