Example YAML

Simple YAML format

In the simple YAML format, all options are defined as strings:

---
Car:
  name: char index
  registration plate: char 20
  seats: integer
  driver: m2o Driver cascade

Driver:
  name: char 50 unique
  phone number: char 10

Note

Please note the position of the options is irrelevant.

Extended YAML format

In the extended YAML format, the options can also be defined as lists:

---
Car:
  name:
    - char
    - index
  registration plate:
    - char
    - 20
  seats:
    - integer
  driver:
    - m2o
    - Driver
    - cascade

Driver:
  name:
    - char
    - 50
    - unique
  phone number:
    - char
    - 10

Note

Please note the order of the list items / options is irrelevant.