Open vDesign

Diagrams and workflows

Booking system ERD

An entity relationship diagram for a sports-court booking platform: seven tables with keys and typed columns, crow's foot connectors on every relationship and a legend card. Table rows, connectors and symbols are editable parts, so adding a table or column is one more instance.

Technology · 1920 × 1080, 1 page

An entity relationship diagram for Fieldhouse with seven tables: users, bookings, courts, clubs, payments, memberships and reviews. Blue connectors end in crow's foot symbols, gold badges mark primary and foreign keys, and a legend card explains the symbols.
Free. Opens in the desktop app if you have it, and in your browser if not.

How it was made

An AI agent connected to vDesign drafted it from this prompt:

An entity relationship diagram for a sports-court booking system: users, clubs, courts, bookings, payments, memberships and reviews, with columns and keys, and crow's foot connectors.

A first draft is rarely the best one. It was then refined, by asking again and by small edits:

  1. Moved the double bar of the exactly one symbol a little further from the table edge so it no longer touches the border.

Remix it with your assistant

With Claude, ChatGPT or another assistant connected to vDesign, paste this and finish the sentence:

Open the vDesign file at https://getv.design/library/booking-erd.vd as a new design in vDesign, then change it for me: [say what it is for, and what should be different].

Things to ask for:

  • Add a coupons table linked to bookings.
  • Add a column called deposit_pence to payments.
  • Use our colours and put the table names in a different typeface.

The source

The design is a .vd file: text that you and any model can read. Sizes and positions are written as relationships, so one change moves everything that depends on it.

Show the .vd source
version 12kind designtitle "Booking database ERD"$slate = #1F2933$gold = #F0B429$pale = #F5F7FA$line = #3E7CB1$white = #FFFFFF$edge = #CBD3DD$muted = #566371$rule = #E4E8EE$c1 = 55$c2 = 545$c3 = 1035$c4 = 1525$r1 = 190$r2 = 496$r3 = 822$tw = 340$hd = 40$rh = 28$ch = 150font head = "Fira Sans"  fallback "system-ui, sans-serif"  face asset=fira-sans-400 weight=400  face asset=fira-sans-600 weight=600  face asset=fira-sans-700 weight=700font code = "Fira Code"  fallback "ui-monospace, monospace"  face asset=fira-code-400 weight=400  face asset=fira-code-600 weight=600asset fira-sans-400 = font/woff2 hash=sha256-3e38d8c01fe97529fbf0a086bf958d724b723ca7fc8be77b4ba5745f6259b6ca bytes=23872 license=OFLasset fira-sans-600 = font/woff2 hash=sha256-55e09735e30d8492afac5d59ac433c6b367bb7dd00c46e157cfe95c9fb29e833 bytes=24844 license=OFLasset fira-sans-700 = font/woff2 hash=sha256-c753d7153cac2cfeb877264d18f11197ca672d3e04ba1472154a54777a4e354d bytes=25012 license=OFLasset fira-code-400 = font/woff2 hash=sha256-6dc9da171ccea71d525379ee1cbf51d143e31acac330a251bb71b3d6060e687c bytes=23312 license=OFLasset fira-code-600 = font/woff2 hash=sha256-53bd904d81c086b103b9e01ef84a98640b2124b78c789bb47ddabb4c41fc94b2 bytes=23316 license=OFLframe page x=0 y=0 w=1920 h=1080 background=pale  text title x=$c1 y=30 w=1700 h=56 font=head size=44 weight=700 letterSpacing=-1 fill=slate    "A booking joins one user to one court, and payments hang off it"  text sub x=$c1 y=90 w=1400 h=28 font=head size=20 fill=muted    "Fieldhouse booking database: 7 tables and 8 relationships. Money is stored in pence."  connector rel.users.bookings x1=@users.right y1=(@users.top + $hd / 2) x2=@bookings.left y2=(@bookings.top + $hd / 2) stroke=line strokeWidth=2.5 cap=round  connector rel.bookings.courts x1=@bookings.right y1=(@bookings.top + $hd / 2) x2=@courts.left y2=(@courts.top + $hd / 2) stroke=line strokeWidth=2.5 cap=round  connector rel.clubs.courts x1=@courts.right y1=(@courts.top + $hd / 2) x2=@clubs.left y2=(@clubs.top + $hd / 2) stroke=line strokeWidth=2.5 cap=round  connector rel.bookings.payments x1=@bookings.cx y1=@bookings.bottom x2=@payments.cx y2=@payments.top stroke=line strokeWidth=2.5 cap=round  connector rel.clubs.memberships x1=@clubs.cx y1=@clubs.top x2=@memberships.cx y2=@memberships.bottom stroke=line strokeWidth=2.5 cap=round  connector rel.courts.reviews x1=@courts.cx y1=@courts.top x2=@reviews.cx y2=@reviews.bottom stroke=line strokeWidth=2.5 cap=round  connector rel.users.memberships.a x1=(@users.x + 80) y1=@users.top x2=(@users.x + 80) y2=$ch stroke=line strokeWidth=2.5 cap=round  connector rel.users.memberships.b x1=(@users.x + 80) y1=$ch x2=@memberships.cx y2=$ch stroke=line strokeWidth=2.5 cap=round  connector rel.users.memberships.c x1=@memberships.cx y1=$ch x2=@memberships.cx y2=@memberships.top stroke=line strokeWidth=2.5 cap=round  connector rel.users.reviews.a x1=(@users.x + 260) y1=@users.top x2=(@users.x + 260) y2=(@reviews.top + $hd / 2) stroke=line strokeWidth=2.5 cap=round  connector rel.users.reviews.b x1=(@users.x + 260) y1=(@reviews.top + $hd / 2) x2=@reviews.left y2=(@reviews.top + $hd / 2) stroke=line strokeWidth=2.5 cap=round  rect users x=$c1 y=$r2 w=$tw h=($hd + $rh * 5) fill=white stroke=edge strokeWidth=1.5 radius=10  instance users.hd component=hd x=@users.x y=@users.y    override hd.t      "users"  instance users.r1 component=pk x=@users.x y=@users.hd.bottom    override pk.n      "id"    override pk.t      "uuid"  instance users.r2 component=col x=@users.x y=@users.r1.bottom    override col.n      "email"    override col.t      "text"  instance users.r3 component=col x=@users.x y=@users.r2.bottom    override col.n      "full_name"    override col.t      "text"  instance users.r4 component=col x=@users.x y=@users.r3.bottom    override col.n      "phone"    override col.t      "text"  instance users.r5 component=col x=@users.x y=@users.r4.bottom    override col.n      "created_at"    override col.t      "timestamptz"  rect bookings x=$c2 y=$r2 w=$tw h=($hd + $rh * 7) fill=white stroke=edge strokeWidth=1.5 radius=10  instance bookings.hd component=hd x=@bookings.x y=@bookings.y    override hd.t      "bookings"  instance bookings.r1 component=pk x=@bookings.x y=@bookings.hd.bottom    override pk.n      "id"    override pk.t      "uuid"  instance bookings.r2 component=fk x=@bookings.x y=@bookings.r1.bottom    override fk.n      "user_id"    override fk.t      "uuid"  instance bookings.r3 component=fk x=@bookings.x y=@bookings.r2.bottom    override fk.n      "court_id"    override fk.t      "uuid"  instance bookings.r4 component=col x=@bookings.x y=@bookings.r3.bottom    override col.n      "starts_at"    override col.t      "timestamptz"  instance bookings.r5 component=col x=@bookings.x y=@bookings.r4.bottom    override col.n      "ends_at"    override col.t      "timestamptz"  instance bookings.r6 component=col x=@bookings.x y=@bookings.r5.bottom    override col.n      "status"    override col.t      "text"  instance bookings.r7 component=col x=@bookings.x y=@bookings.r6.bottom    override col.n      "total_pence"    override col.t      "integer"  rect courts x=$c3 y=$r2 w=$tw h=($hd + $rh * 6) fill=white stroke=edge strokeWidth=1.5 radius=10  instance courts.hd component=hd x=@courts.x y=@courts.y    override hd.t      "courts"  instance courts.r1 component=pk x=@courts.x y=@courts.hd.bottom    override pk.n      "id"    override pk.t      "uuid"  instance courts.r2 component=fk x=@courts.x y=@courts.r1.bottom    override fk.n      "club_id"    override fk.t      "uuid"  instance courts.r3 component=col x=@courts.x y=@courts.r2.bottom    override col.n      "name"    override col.t      "text"  instance courts.r4 component=col x=@courts.x y=@courts.r3.bottom    override col.n      "sport"    override col.t      "text"  instance courts.r5 component=col x=@courts.x y=@courts.r4.bottom    override col.n      "surface"    override col.t      "text"  instance courts.r6 component=col x=@courts.x y=@courts.r5.bottom    override col.n      "hourly_pence"    override col.t      "integer"  rect clubs x=$c4 y=$r2 w=$tw h=($hd + $rh * 5) fill=white stroke=edge strokeWidth=1.5 radius=10  instance clubs.hd component=hd x=@clubs.x y=@clubs.y    override hd.t      "clubs"  instance clubs.r1 component=pk x=@clubs.x y=@clubs.hd.bottom    override pk.n      "id"    override pk.t      "uuid"  instance clubs.r2 component=col x=@clubs.x y=@clubs.r1.bottom    override col.n      "name"    override col.t      "text"  instance clubs.r3 component=col x=@clubs.x y=@clubs.r2.bottom    override col.n      "city"    override col.t      "text"  instance clubs.r4 component=col x=@clubs.x y=@clubs.r3.bottom    override col.n      "opens_at"    override col.t      "time"  instance clubs.r5 component=col x=@clubs.x y=@clubs.r4.bottom    override col.n      "closes_at"    override col.t      "time"  rect payments x=$c2 y=$r3 w=$tw h=($hd + $rh * 5) fill=white stroke=edge strokeWidth=1.5 radius=10  instance payments.hd component=hd x=@payments.x y=@payments.y    override hd.t      "payments"  instance payments.r1 component=pk x=@payments.x y=@payments.hd.bottom    override pk.n      "id"    override pk.t      "uuid"  instance payments.r2 component=fk x=@payments.x y=@payments.r1.bottom    override fk.n      "booking_id"    override fk.t      "uuid"  instance payments.r3 component=col x=@payments.x y=@payments.r2.bottom    override col.n      "amount_pence"    override col.t      "integer"  instance payments.r4 component=col x=@payments.x y=@payments.r3.bottom    override col.n      "method"    override col.t      "text"  instance payments.r5 component=col x=@payments.x y=@payments.r4.bottom    override col.n      "paid_at"    override col.t      "timestamptz"  rect memberships x=$c4 y=$r1 w=$tw h=($hd + $rh * 6) fill=white stroke=edge strokeWidth=1.5 radius=10  instance memberships.hd component=hd x=@memberships.x y=@memberships.y    override hd.t      "memberships"  instance memberships.r1 component=pk x=@memberships.x y=@memberships.hd.bottom    override pk.n      "id"    override pk.t      "uuid"  instance memberships.r2 component=fk x=@memberships.x y=@memberships.r1.bottom    override fk.n      "user_id"    override fk.t      "uuid"  instance memberships.r3 component=fk x=@memberships.x y=@memberships.r2.bottom    override fk.n      "club_id"    override fk.t      "uuid"  instance memberships.r4 component=col x=@memberships.x y=@memberships.r3.bottom    override col.n      "tier"    override col.t      "text"  instance memberships.r5 component=col x=@memberships.x y=@memberships.r4.bottom    override col.n      "starts_on"    override col.t      "date"  instance memberships.r6 component=col x=@memberships.x y=@memberships.r5.bottom    override col.n      "ends_on"    override col.t      "date"  rect reviews x=$c3 y=$r1 w=$tw h=($hd + $rh * 6) fill=white stroke=edge strokeWidth=1.5 radius=10  instance reviews.hd component=hd x=@reviews.x y=@reviews.y    override hd.t      "reviews"  instance reviews.r1 component=pk x=@reviews.x y=@reviews.hd.bottom    override pk.n      "id"    override pk.t      "uuid"  instance reviews.r2 component=fk x=@reviews.x y=@reviews.r1.bottom    override fk.n      "user_id"    override fk.t      "uuid"  instance reviews.r3 component=fk x=@reviews.x y=@reviews.r2.bottom    override fk.n      "court_id"    override fk.t      "uuid"  instance reviews.r4 component=col x=@reviews.x y=@reviews.r3.bottom    override col.n      "rating"    override col.t      "smallint"  instance reviews.r5 component=col x=@reviews.x y=@reviews.r4.bottom    override col.n      "body"    override col.t      "text"  instance reviews.r6 component=col x=@reviews.x y=@reviews.r5.bottom    override col.n      "created_at"    override col.t      "timestamptz"  vector m.users.b x=@users.right y=(@users.top + $hd / 2 - 12) w=30 h=24 view="0 0 30 24" d="M10 2 L10 22 M17 2 L17 22" fill=none stroke=line strokeWidth=2.5 cap=round  vector m.bookings.u x=(@bookings.left - 30) y=(@bookings.top + $hd / 2 - 12) w=30 h=24 view="0 0 30 24" d="M30 3 L16 12 M30 21 L16 12" fill=none stroke=line strokeWidth=2.5 cap=round  vector m.bookings.u.o x=(@bookings.left - 30) y=(@bookings.top + $hd / 2 - 12) w=30 h=24 view="0 0 30 24" d="M3 12 A4.5 4.5 0 1 0 12 12 A4.5 4.5 0 1 0 3 12 Z" fill=pale stroke=line strokeWidth=2.5  vector m.bookings.c x=@bookings.right y=(@bookings.top + $hd / 2 - 12) w=30 h=24 view="0 0 30 24" d="M0 3 L14 12 M0 21 L14 12" fill=none stroke=line strokeWidth=2.5 cap=round  vector m.bookings.c.o x=@bookings.right y=(@bookings.top + $hd / 2 - 12) w=30 h=24 view="0 0 30 24" d="M18 12 A4.5 4.5 0 1 0 27 12 A4.5 4.5 0 1 0 18 12 Z" fill=pale stroke=line strokeWidth=2.5  vector m.courts.b x=(@courts.left - 30) y=(@courts.top + $hd / 2 - 12) w=30 h=24 view="0 0 30 24" d="M20 2 L20 22 M13 2 L13 22" fill=none stroke=line strokeWidth=2.5 cap=round  vector m.courts.k x=@courts.right y=(@courts.top + $hd / 2 - 12) w=30 h=24 view="0 0 30 24" d="M0 3 L14 12 M0 21 L14 12 M21 3 L21 21" fill=none stroke=line strokeWidth=2.5 cap=round  vector m.clubs.c x=(@clubs.left - 30) y=(@clubs.top + $hd / 2 - 12) w=30 h=24 view="0 0 30 24" d="M20 2 L20 22 M13 2 L13 22" fill=none stroke=line strokeWidth=2.5 cap=round  vector m.bookings.p x=(@bookings.cx - 12) y=@bookings.bottom w=24 h=30 view="0 0 24 30" d="M2 10 L22 10 M2 17 L22 17" fill=none stroke=line strokeWidth=2.5 cap=round  vector m.payments.b x=(@payments.cx - 12) y=(@payments.top - 30) w=24 h=30 view="0 0 24 30" d="M3 30 L12 16 M21 30 L12 16" fill=none stroke=line strokeWidth=2.5 cap=round  vector m.payments.b.o x=(@payments.cx - 12) y=(@payments.top - 30) w=24 h=30 view="0 0 24 30" d="M7.5 7.5 A4.5 4.5 0 1 0 16.5 7.5 A4.5 4.5 0 1 0 7.5 7.5 Z" fill=pale stroke=line strokeWidth=2.5  vector m.clubs.m x=(@clubs.cx - 12) y=(@clubs.top - 30) w=24 h=30 view="0 0 24 30" d="M2 20 L22 20 M2 13 L22 13" fill=none stroke=line strokeWidth=2.5 cap=round  vector m.memberships.c x=(@memberships.cx - 12) y=@memberships.bottom w=24 h=30 view="0 0 24 30" d="M3 0 L12 14 M21 0 L12 14" fill=none stroke=line strokeWidth=2.5 cap=round  vector m.memberships.c.o x=(@memberships.cx - 12) y=@memberships.bottom w=24 h=30 view="0 0 24 30" d="M7.5 22.5 A4.5 4.5 0 1 0 16.5 22.5 A4.5 4.5 0 1 0 7.5 22.5 Z" fill=pale stroke=line strokeWidth=2.5  vector m.courts.r x=(@courts.cx - 12) y=(@courts.top - 30) w=24 h=30 view="0 0 24 30" d="M2 20 L22 20 M2 13 L22 13" fill=none stroke=line strokeWidth=2.5 cap=round  vector m.reviews.c x=(@reviews.cx - 12) y=@reviews.bottom w=24 h=30 view="0 0 24 30" d="M3 0 L12 14 M21 0 L12 14" fill=none stroke=line strokeWidth=2.5 cap=round  vector m.reviews.c.o x=(@reviews.cx - 12) y=@reviews.bottom w=24 h=30 view="0 0 24 30" d="M7.5 22.5 A4.5 4.5 0 1 0 16.5 22.5 A4.5 4.5 0 1 0 7.5 22.5 Z" fill=pale stroke=line strokeWidth=2.5  vector m.users.m x=(@users.x + 80 - 12) y=(@users.top - 30) w=24 h=30 view="0 0 24 30" d="M2 20 L22 20 M2 13 L22 13" fill=none stroke=line strokeWidth=2.5 cap=round  vector m.memberships.u x=(@memberships.cx - 12) y=(@memberships.top - 30) w=24 h=30 view="0 0 24 30" d="M3 30 L12 16 M21 30 L12 16" fill=none stroke=line strokeWidth=2.5 cap=round  vector m.memberships.u.o x=(@memberships.cx - 12) y=(@memberships.top - 30) w=24 h=30 view="0 0 24 30" d="M7.5 7.5 A4.5 4.5 0 1 0 16.5 7.5 A4.5 4.5 0 1 0 7.5 7.5 Z" fill=pale stroke=line strokeWidth=2.5  vector m.users.r x=(@users.x + 260 - 12) y=(@users.top - 30) w=24 h=30 view="0 0 24 30" d="M2 20 L22 20 M2 13 L22 13" fill=none stroke=line strokeWidth=2.5 cap=round  vector m.reviews.u x=(@reviews.left - 30) y=(@reviews.top + $hd / 2 - 12) w=30 h=24 view="0 0 30 24" d="M30 3 L16 12 M30 21 L16 12" fill=none stroke=line strokeWidth=2.5 cap=round  vector m.reviews.u.o x=(@reviews.left - 30) y=(@reviews.top + $hd / 2 - 12) w=30 h=24 view="0 0 30 24" d="M3 12 A4.5 4.5 0 1 0 12 12 A4.5 4.5 0 1 0 3 12 Z" fill=pale stroke=line strokeWidth=2.5  rect note.bar x=450 y=262 w=5 h=150 fill=gold radius=2  text note.h x=474 y=258 w=500 h=32 font=head size=22 weight=700 fill=slate    "Two rules the schema enforces"  text note.a x=474 y=302 w=500 h=56 font=head size=18 lineHeight=1.4 fill=slate    "Two bookings cannot overlap on the same court."  text note.b x=474 y=348 w=500 h=60 font=head size=18 lineHeight=1.4 fill=slate    "Every payment points to a booking, and one booking can take a deposit and a balance."  rect leg x=$c3 y=$r3 w=($c4 + $tw - $c3) h=($hd + $rh * 5) fill=white stroke=edge strokeWidth=1.5 radius=10  text leg.h x=(@leg.x + 24) y=(@leg.y + 14) w=500 h=30 font=head size=22 weight=700 fill=slate    "Reading the connectors"  rect leg.0.a x=(@leg.x + 24 + 0) y=(@leg.y + 54) w=12 h=30 fill=slate radius=3  connector leg.0.l x1=@leg.0.a.right y1=@leg.0.a.cy x2=(@leg.0.a.right + 100) y2=@leg.0.a.cy stroke=line strokeWidth=2.5 cap=round  rect leg.0.b x=(@leg.0.a.right + 100) y=@leg.0.a.y w=12 h=30 fill=slate radius=3  vector leg.0.m x=@leg.0.a.right y=(@leg.0.a.cy - 12) w=30 h=24 view="0 0 30 24" d="M10 2 L10 22 M17 2 L17 22" fill=none stroke=line strokeWidth=2.5 cap=round  text leg.0.t x=(@leg.x + 24 + 0) y=(@leg.y + 94) w=250 h=26 font=head size=18 weight=600 fill=slate    "Exactly one"  text leg.0.d x=(@leg.x + 24 + 0) y=(@leg.y + 120) w=256 h=24 font=head size=15 fill=muted    "A booking has one user."  rect leg.1.a x=(@leg.x + 24 + 270) y=(@leg.y + 54) w=12 h=30 fill=slate radius=3  connector leg.1.l x1=@leg.1.a.right y1=@leg.1.a.cy x2=(@leg.1.a.right + 100) y2=@leg.1.a.cy stroke=line strokeWidth=2.5 cap=round  rect leg.1.b x=(@leg.1.a.right + 100) y=@leg.1.a.y w=12 h=30 fill=slate radius=3  vector leg.1.m x=@leg.1.a.right y=(@leg.1.a.cy - 12) w=30 h=24 view="0 0 30 24" d="M0 3 L14 12 M0 21 L14 12 M21 3 L21 21" fill=none stroke=line strokeWidth=2.5 cap=round  text leg.1.t x=(@leg.x + 24 + 270) y=(@leg.y + 94) w=250 h=26 font=head size=18 weight=600 fill=slate    "One or many"  text leg.1.d x=(@leg.x + 24 + 270) y=(@leg.y + 120) w=256 h=24 font=head size=15 fill=muted    "A club has at least one court."  rect leg.2.a x=(@leg.x + 24 + 540) y=(@leg.y + 54) w=12 h=30 fill=slate radius=3  connector leg.2.l x1=@leg.2.a.right y1=@leg.2.a.cy x2=(@leg.2.a.right + 100) y2=@leg.2.a.cy stroke=line strokeWidth=2.5 cap=round  rect leg.2.b x=(@leg.2.a.right + 100) y=@leg.2.a.y w=12 h=30 fill=slate radius=3  vector leg.2.m x=@leg.2.a.right y=(@leg.2.a.cy - 12) w=30 h=24 view="0 0 30 24" d="M0 3 L14 12 M0 21 L14 12" fill=none stroke=line strokeWidth=2.5 cap=round  vector leg.2.m.o x=@leg.2.a.right y=(@leg.2.a.cy - 12) w=30 h=24 view="0 0 30 24" d="M18 12 A4.5 4.5 0 1 0 27 12 A4.5 4.5 0 1 0 18 12 Z" fill=pale stroke=line strokeWidth=2.5  text leg.2.t x=(@leg.x + 24 + 540) y=(@leg.y + 94) w=250 h=26 font=head size=18 weight=600 fill=slate    "Zero or many"  text leg.2.d x=(@leg.x + 24 + 540) y=(@leg.y + 120) w=256 h=24 font=head size=15 fill=muted    "A booking may have no payments."  rect leg.pk x=(@leg.x + 24) y=(@leg.y + 152) w=30 h=18 fill=gold radius=4  text leg.pk.b x=@leg.pk.x y=@leg.pk.y w=@leg.pk.w h=@leg.pk.h font=head size=12 weight=700 align=center valign=middle fill=slate    "PK"  text leg.pk.t x=(@leg.pk.right + 10) y=(@leg.pk.y - 2) w=150 h=22 font=head size=15 fill=slate    "Primary key"  rect leg.fk x=(@leg.x + 294) y=@leg.pk.y w=30 h=18 fill=white stroke=gold strokeWidth=2 radius=4  text leg.fk.b x=@leg.fk.x y=@leg.fk.y w=@leg.fk.w h=@leg.fk.h font=head size=12 weight=700 align=center valign=middle fill=slate    "FK"  text leg.fk.t x=(@leg.fk.right + 10) y=(@leg.fk.y - 2) w=200 h=22 font=head size=15 fill=slate    "Foreign key to another table"frame hd x=0 y=1160 w=$tw h=$hd component  rect hd.bg x=0 y=0 w=100% h=100% fill=slate radius="10 10 0 0"  text hd.t x=16 y=0 w=300 h=$hd font=code size=19 weight=600 valign=middle fill=white    "table"frame pk x=360 y=1160 w=$tw h=$rh component  rect pk.rule x=12 y=27 w=316 h=1 fill=rule  rect pk.badge x=12 y=5 w=30 h=18 fill=gold radius=4  text pk.badge.t x=@pk.badge.x y=@pk.badge.y w=@pk.badge.w h=@pk.badge.h font=head size=12 weight=700 align=center valign=middle fill=slate    "PK"  text pk.n x=54 y=3 w=170 h=22 font=code size=15 weight=600 valign=middle fill=slate    "name"  text pk.t x=224 y=3 w=104 h=22 font=code size=13 align=right valign=middle fill=muted    "type"frame fk x=720 y=1160 w=$tw h=$rh component  rect fk.rule x=12 y=27 w=316 h=1 fill=rule  rect fk.badge x=12 y=5 w=30 h=18 fill=white stroke=gold strokeWidth=2 radius=4  text fk.badge.t x=@fk.badge.x y=@fk.badge.y w=@fk.badge.w h=@fk.badge.h font=head size=12 weight=700 align=center valign=middle fill=slate    "FK"  text fk.n x=54 y=3 w=170 h=22 font=code size=15 weight=400 valign=middle fill=slate    "name"  text fk.t x=224 y=3 w=104 h=22 font=code size=13 align=right valign=middle fill=muted    "type"frame col x=1080 y=1160 w=$tw h=$rh component  rect col.rule x=12 y=27 w=316 h=1 fill=rule  text col.n x=54 y=3 w=170 h=22 font=code size=15 weight=400 valign=middle fill=slate    "name"  text col.t x=224 y=3 w=104 h=22 font=code size=13 align=right valign=middle fill=muted    "type"