datacontract / datacontract-specification

The Data Contract Specification Repository

Home Page:https://datacontract.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add field.primary and field.references

simonharrer opened this issue · comments

models:
  orders:
    fields:
      order_id:
        type: text
        primary: true
  line_items:
    fields:
       line_item_id:
         type: bigint
         primary: true
       order_id:
         type: text
         references: orders.order_id

This is approved.

primary has been added to the spec.

references is now part of the standard