Schema generally declares how to index each field, which type of fields are available within a schema, which fields are necessary to define, and which field can be used as a primary key for the database.