Schema is just a map and it can be nested. Each field is defined as
[field_name]: [field_spec, ...]
Or short form
[field_name]: [type]
Field specs is a term list thay may include:
type
Tarams
Ecto
default
cast_func
number, format, length, in, not_in, func, required, each
from
as
Tarams.cast