Following up on https://github.com/unframed/SQLAbstract.php/issues/4, JSONModel must generate SQL constraints. First the PRIMARY KEY constraint. Then FOREIGN KEY constraints.