Model

TODO

ModelAttribute

interface ModelAttribute {}

This type is only used to reference attributes for Foreign Keys. If we write following model:

const db = new Sedentary();
const Foo = db.model("Foo", { bar: db.INT });

the newly created Foo model has the Foo.bar ModelAttribute to be used later to specify a foreign key referencing the bar attribute:

const Baz = db.model("Baz", { bar: db.FKEY(Foo.bar) });