main schema defined