> For the complete documentation index, see [llms.txt](https://docs.sunbirdrc.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sunbirdrc.dev/~/changes/ZV4lFZMKighmbjr9sJml/developer-documentation/introduction-to-schemas.md).

# Introduction To Schemas

Each registry can store data as entities. The example registry we setup using CLI already has two types of entities: `Teacher` and `Student`. To view the schemas, run the following in the directory you setup the registry:

```
$ cat config/schemas/student.json
$ cat config/schemas/teacher.json
```

> Or you could view the schemas [on Github](https://github.com/sunbird-rc/sunbird-rc-core/tree/main/tools/cli/src/templates/config/schemas).

A teacher is represented by 5 fields: `name`, `phoneNumber`, `email`, `subject` and `school`, out of which `name`, `phoneNumber`, `email` and `school` are required fields. `subject` can be any one of Math, Hindi, English, History, Geography, Physics, Chemistry, and Biology.

A student is represented by 4 fields: `name`, `phoneNumber`, `email`, and `school`, all of which are required fields. When setting `school` field, you are making a 'claim' (i.e., that the student is from the specified school), which can be 'attested' (i.e., confirmed to be true) by a teacher from the same school.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sunbirdrc.dev/~/changes/ZV4lFZMKighmbjr9sJml/developer-documentation/introduction-to-schemas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
