model logic and schema files