overture-stack / lectern

Data Schema / Dictionary management system
GNU Affero General Public License v3.0
0 stars 1 forks source link

Add `foreignKey` schema restriction #189

Closed joneubank closed 1 year ago

joneubank commented 1 year ago

Resolves: https://github.com/overture-stack/lectern/issues/177

Schemas can accept foreign key restriction with array of mappings. Validations are in place to make sure the local and foreign key names exist and are not self referential. Validations are also done to make sure that the types of the foreign and local fields are the same.