The Application Generator uses the structure of your database to generate the code. There are some conventions to be followed though:
Once database schema has been created and normalised to your linking, code can be generated.
Following schema is used by GS SalesManager: