type PublicKey data<128> type Time string # ISO 8601 enum Department { ACCOUNTING ADMINISTRATION CUSTOMER_SERVICE DEVELOPMENT # Reserved for the CEO JSMITH = 99 } type Customer { name: string email: string address: Address orders: []{ orderId: i64 quantity: i32 } metadata: map[string]data } type Employee { name: string email: string address: Address department: Department hireDate: Time publicKey: optional metadata: map[string]data } type TerminatedEmployee void type Person (Customer | Employee | TerminatedEmployee) type Address { address: [4]string city: string state: string country: string }