define database schema in models