# Types of Schemas

There are four types of Schemas:

1. [System Schemas](#system-schemas)
2. [Policy Schemas](#policy-schemas)
3. [Tag Schemas](#tag-schemas)
4. [Module Schemas](#module-schemas)

To display System / Policy Schemas in the GUI, we have added a toggle in the Schemas tab.

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-b700a7076fa0fc2da6ba683bc52efa8a288bedea%2Fimage%20(223).png?alt=media" alt=""><figcaption></figcaption></figure>

## System Schemas

Whenever an account is created, System Schemas are generated automatically.

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-13eea5a6ff71034fbffd7ef7d45b0833b28a550a%2Fimage%20(16)%20(3)%20(2).png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Note: By default System Schemas cannot be edited/deleted.
{% endhint %}

## Policy Schemas <a href="#policy-schemas" id="policy-schemas"></a>

This is the second option in the Schemas tab. This option displays all the Policy Schemas related to all the created/imported Policies in the Policies tab.

The below screenshot shows the Policy Schemas of an imported Policy (i.e. iRec).

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-3684deeeb6c5af77226f5dd931f3ece06a8cb1d2%2Fimage%20(1)%20(9)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

We also have a filter, where by default, all the Schemas of Policies are shown. We can also select a particular Policy to show the Schemas of the selected Policy.

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-46e2080c4d137b41ac16b623fce2d531f02a3c1b%2Fimage%20(38).png?alt=media&#x26;token=6036fb52-f1a9-40bf-86f8-65b46ceebb93" alt=""><figcaption></figcaption></figure>

## Tag Schemas

Tags can have attached/linked documents. To add a document to the tag a schema is required. Such documents can be found under the [**Tag Schemas**](https://guardian.hedera.com/guardian/standard-registry/schemas/tag-schema) section.

## Module Schemas

Module schemas needs to define minimum set of fields in module variable with type “schema”.

### Creation of Schemas

To create module schema, we need to click on Create New button:

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-f9b7baee0e73f1485827689895c8384011978c35%2Fimage%20(224).png?alt=media&#x26;token=5547ed5a-843f-4889-b0d2-a5d52118a856" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-1169bfcbff2c963ea71e83614e1df540617eb562%2Fimage%20(225).png?alt=media" alt=""><figcaption></figcaption></figure>

### Using schemas:

Select module schema in “BaseSchema” field in module variables section

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-59f5f04e91b6b53c13a543afbab38e269b806eb4%2Fimage%20(226).png?alt=media" alt=""><figcaption></figcaption></figure>
