move schema definitions into separate file