Comment on page
Introduction To Schemas
Each registry can store data as entities. The example registry we setup using CLI already has two types of entities:
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
A teacher is represented by 5 fields:
school, out of which
schoolare required fields.
subjectcan be any one of Math, Hindi, English, History, Geography, Physics, Chemistry, and Biology.
A student is represented by 4 fields:
school, all of which are required fields. When setting
schoolfield, 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.