Skip to content

Instantly share code, notes, and snippets.

@Roenbaeck
Created August 11, 2022 23:05
Show Gist options
  • Select an option

  • Save Roenbaeck/72dd945dd905f363a09957064fde776d to your computer and use it in GitHub Desktop.

Select an option

Save Roenbaeck/72dd945dd905f363a09957064fde776d to your computer and use it in GitHub Desktop.
Restaurant Model
<schema><metadata format="0.94" temporalization="mono"/><knot mnemonic="TYP" descriptor="Type" identity="tinyint" dataRange="varchar(42)"><metadata capsule="dbo" generator="false"/><layout x="720.82" y="-19.71" fixed="false"/></knot><knot mnemonic="CUI" descriptor="Cuisine" identity="tinyint" dataRange="varchar(42)"><metadata capsule="dbo" generator="false"/><layout x="821.83" y="330.00" fixed="false"/></knot><knot mnemonic="EXP" descriptor="Expired" identity="bit" dataRange="char(1)"><metadata capsule="dbo" generator="false"/><layout x="547.68" y="235.11" fixed="false"/></knot><anchor mnemonic="CO" descriptor="Consumption" identity="int"><metadata capsule="dbo" generator="true"/><attribute mnemonic="DAT" descriptor="Date" dataRange="date"><metadata capsule="dbo"/><layout x="892.31" y="186.07" fixed="false"/></attribute><attribute mnemonic="AMT" descriptor="Amount" dataRange="int"><metadata capsule="dbo"/><layout x="796.13" y="76.62" fixed="false"/></attribute><layout x="830.46" y="140.58" fixed="false"/></anchor><anchor mnemonic="RE" descriptor="Restaurant" identity="int"><metadata capsule="dbo" generator="true"/><attribute mnemonic="NAM" descriptor="Name" dataRange="varchar(42)"><metadata capsule="dbo"/><layout x="657.38" y="314.10" fixed="false"/></attribute><attribute mnemonic="CUI" descriptor="Cuisine" knotRange="CUI"><metadata capsule="dbo"/><layout x="752.92" y="325.88" fixed="false"/></attribute><layout x="702.37" y="263.77" fixed="false"/></anchor><anchor mnemonic="GU" descriptor="Guest" identity="int"><metadata capsule="dbo" generator="true"/><attribute mnemonic="NAM" descriptor="Name" dataRange="varchar(42)"><metadata capsule="dbo"/><layout x="929.50" y="-33.00" fixed="false"/></attribute><layout x="907.02" y="3.32" fixed="false"/></anchor><anchor mnemonic="DI" descriptor="Dish" identity="int"><metadata capsule="dbo" generator="true"/><attribute mnemonic="NAM" descriptor="Name" dataRange="varchar(42)"><metadata capsule="dbo"/><layout x="567.15" y="112.94" fixed="false"/></attribute><attribute mnemonic="PRI" descriptor="Price" timeRange="date" dataRange="money"><metadata capsule="dbo"/><layout x="602.44" y="62.66" fixed="false"/></attribute><attribute mnemonic="TYP" descriptor="Type" knotRange="TYP"><metadata capsule="dbo"/><layout x="685.75" y="23.24" fixed="false"/></attribute><layout x="651.52" y="114.26" fixed="false"/></anchor><tie><anchorRole role="in" type="CO" identifier="true"/><anchorRole role="whoAte" type="GU" identifier="true"/><metadata capsule="dbo"/><layout x="889.51" y="68.57" fixed="false"/></tie><tie><anchorRole role="location" type="RE" identifier="false"/><anchorRole role="tookPlaceAt" type="CO" identifier="true"/><metadata capsule="dbo"/><layout x="766.01" y="205.44" fixed="false"/></tie><tie timeRange="date"><anchorRole role="at" type="RE" identifier="true"/><anchorRole role="isServed" type="DI" identifier="true"/><knotRole role="until" type="EXP" identifier="false"/><metadata capsule="dbo"/><layout x="624.03" y="215.69" fixed="false"/></tie><tie><anchorRole role="eaten" type="DI" identifier="false"/><anchorRole role="in" type="CO" identifier="true"/><metadata capsule="dbo"/><layout x="744.17" y="119.67" fixed="false"/></tie></schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment