I am a newbie to erlang and chicago boss. I followed Chicago boss API documentation. I have been working with Python and Django earlier. Now in Chicago boss can we add foreign key in models.
This is my model.
model: anatomy.erl
-module(anatomy, [Id,
UID,
Name,
Property,
Ratio::float(),
Value::integer(),
Pieces::float(),
Status]).
-compile(export_all).
There is another model.
model: species.erl
-module(species, [Id,
UID,
Name,
Property,
Anatomy,
Morphology
Gender]).
-compile(export_all).
I have to add Anatomy
as a foreign key in species
table.