Schema of the database is stored in the db directory of the application.
You can use any folder structure.
For comparing Functions,Views, Procedures, you need to put CREATE script files in the db directory. File name must be in the format schema.objectname.sql.
db checks
Additionally you can put special file db-checks.xml in the db directory.
This file contains macro for the database schema.