Example: Employee
A person, extended with an employee id and department.

Extends

name
The person's name.
inherited
age
Age in years.
optional · inherited
active
Whether the person is currently active.
optional · inherited
home
Home postal address.
optional · inherited
nicknames
Other names the person goes by.
of optional · inherited
employeeId
The employee's id within the organization.
department
The department the employee works in.
optional

A person with a required employeeId and a department. It extends person, and admin extends it in turn. bob and dave are instances.

This page describes the example/employee type, one of the example schemas. The formal schema is attached as the schemaDefinition in this page's metadata, so the app can show it and create values of this type.

See also

    person: the type it extends.

    admin: the type that extends it.

    bob: an instance.

    Extension: how a schema extends another.

    Examples: every example, grouped by feature.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime