This tutorial shows how to create a schema named contact-info and to configure several common schema properties. For more information on creating schemas, see Schemas.
- Sign in to the Modeling Application and then open the project you want to work with.
-
To create a schema, click the three dots next to
Schemas, select Create, and then
do the following:
- In the Schema name field, enter: contact-info
- In the Prefix field, enter: ci
- Enter a Description for the schema.
- Click Create Schema.
-
To create a new schema property, click the + symbol next
to contact-info and do the following:
- In the Name field, enter: address
-
From the Type drop-down list, select
Complex.
Note:
In this example address needs to be a Complex property because it will contain its own properties that are independent of the other contact-info properties.
- Enter a Description for the property.
- Click Add Property.
The address properties are displayed as a subset of the properties of contact-info. -
To create a new address property, click the
+ symbol next to address and
do the following:
- In the Name field, enter: street
- From the Type drop-down list, select String.
- Enter a Description for the property.
- Select Required.
- Select Repository Default.
- Click Add Property.
-
Repeat the previous step to create the following address
properties:
Name Type number String city String postcode String current Boolean type-of-address String -
To create another schema property, click the + symbol
next to contact-info and do the following:
- In the Name field, enter: phone
-
From the Type drop-down list, select
Complex.
Note:
In this example phone needs to be a Complex property because it will contain its own properties that are independent of the other contact-info properties.
- Enter a Description for the property.
- Click Add Property.
The phone properties are displayed as a subset of the properties of contact-info. -
To create a new phone property, click the
+ symbol next to phone and do
the following:
- In the Name, enter: phone number
- From the Type drop-down list, select Integer.
- Enter a Description for the property.
- Select Required.
- Click Add Property.
-
Repeat the previous step to create the following phone
properties:
Name Type type-of-phone-number String current Boolean -
To create another schema property, click the + symbol
next to contact-info and do the following:
- In the Name field, enter: email
- From the Type drop-down list, select String.
- Enter a Description for the property.
- Select Required.
- Click Add Property.
- Click Save.
You have now created and configured a schema named
contact-info.