Slide 35
Slide 35 text
namespace Demo.Person;
table Person {
firstName:string;
lastName:string;
age:short;
}
root_type Person;
// NEW FIELD
enum Department:byte { RnD = 0, Product, Finance = 2 }
company:Company; // NEW FIELD
department:Department = RnD; // NEW FIELD
// NEW TABLE
table Company {
companyName:string;
companyStreetName:string;
streetNumber:short;
}