Defining the schema and models