datajoint / datajoint-matlab

Relational data pipelines for the science lab
MIT License
42 stars 37 forks source link

Add options for foreign key attributes #302

Closed guzman-raphael closed 3 years ago

guzman-raphael commented 3 years ago

Fix #110

For instance, the syntax to properly set within the Table definition could be:

%{
# ActiveSession
-> [unique] Lab.Subject
---
(session_rig_class, session_rig_id) -> [nullable, unique] Lab.Rig(rig_manufacturer, rig_model)
%}

Note: describe currently does not support showing set indices and will continue to not show with this update. Will file a separate issue to track it.