Title: Add [unique] for non-PK foreign key · Issue #656 · datajoint/datajoint-python · GitHub
Open Graph Title: Add [unique] for non-PK foreign key · Issue #656 · datajoint/datajoint-python
X Title: Add [unique] for non-PK foreign key · Issue #656 · datajoint/datajoint-python
Description: A very simple example case: @schema class TableA(dj.Manual): definition = """ a_attr: int """ @schema class TableB(dj.Manual): definition = """ b1_attr: int b2_attr: int --- b3_attr: int """ and @schema class TableC(dj.Manual): definitio...
Open Graph Description: A very simple example case: @schema class TableA(dj.Manual): definition = """ a_attr: int """ @schema class TableB(dj.Manual): definition = """ b1_attr: int b2_attr: int --- b3_attr: int """ and @s...
X Description: A very simple example case: @schema class TableA(dj.Manual): definition = """ a_attr: int """ @schema class TableB(dj.Manual): definition = """ b1_attr:...
Opengraph URL: https://github.com/datajoint/datajoint-python/issues/656
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add [unique] for non-PK foreign key","articleBody":"A very simple example case:\r\n\r\n```\r\n@schema\r\nclass TableA(dj.Manual):\r\n definition = \"\"\"\r\n a_attr: int\r\n \"\"\"\r\n```\r\n\r\n```\r\n@schema\r\nclass TableB(dj.Manual):\r\n definition = \"\"\"\r\n b1_attr: int\r\n b2_attr: int\r\n ---\r\n b3_attr: int\r\n \"\"\"\r\n```\r\n\r\nand \r\n\r\n```\r\n@schema\r\nclass TableC(dj.Manual):\r\n definition = \"\"\"\r\n -\u003e TableA\r\n ---\r\n -\u003e [unique] TableB\r\n \"\"\"\r\n```\r\n\r\nbut currently, such definition for 'TableC' is not supported, instead, I need to do something like:\r\n```\r\n@schema\r\nclass TableC(dj.Manual):\r\n definition = \"\"\"\r\n -\u003e TableA\r\n ---\r\n -\u003e TableB\r\n unique index (b1_attr, b2_attr)\r\n \"\"\"\r\n```\r\n","author":{"url":"https://github.com/ttngu207","@type":"Person","name":"ttngu207"},"datePublished":"2019-09-10T19:33:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/656/datajoint-python/issues/656"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b0199563-2cf0-9272-c01c-881231245971 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C6F8:320E86:12DFEFD:1B5F2E2:6A4E415E |
| html-safe-nonce | 3d4102c3d4a971ad6d2362c92c6f4ddc36c6dca8cba51f8a17b296787504594a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkY4OjMyMEU4NjoxMkRGRUZEOjFCNUYyRTI6NkE0RTQxNUUiLCJ2aXNpdG9yX2lkIjoiNjM1Nzc3MjYxNjExNjA5MzI3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 785043ccd58c04ad8e6a77d88792119e6029f8f83c5a6e58a36b67843101c72f |
| hovercard-subject-tag | issue:491857372 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/datajoint/datajoint-python/656/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c6454056338d37f81124c260e6d784063966a5fea8c6e578064c6ea62f3f9685/datajoint/datajoint-python/issues/656 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c6454056338d37f81124c260e6d784063966a5fea8c6e578064c6ea62f3f9685/datajoint/datajoint-python/issues/656 |
| og:image:alt | A very simple example case: @schema class TableA(dj.Manual): definition = """ a_attr: int """ @schema class TableB(dj.Manual): definition = """ b1_attr: int b2_attr: int --- b3_attr: int """ and @s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ttngu207 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/datajoint/datajoint-python git https://github.com/datajoint/datajoint-python.git |
| octolytics-dimension-user_id | 2375501 |
| octolytics-dimension-user_login | datajoint |
| octolytics-dimension-repository_id | 5866704 |
| octolytics-dimension-repository_nwo | datajoint/datajoint-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 5866704 |
| octolytics-dimension-repository_network_root_nwo | datajoint/datajoint-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9fabff9b8b127e686a3ec86f91422e818056ca2c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width