digraph G {graph [rankdir=LR,bgcolor="white",pad=0.3,nodesep=0.35,ranksep=0.45,splines=polyline,fontname="Arial",fontsize=14];node [shape=box,style="rounded,filled",fillcolor="#f1f5f8",color="#9aafbd",fontcolor="#173b52",fontname="Arial",fontsize=14,margin="0.18,0.13"];edge [color="#49728c",fontname="Arial",fontsize=11,fontcolor="#364f60",arrowsize=0.7]; org [label="organizations\nPK id · alias · created_at",shape=cylinder]; users [label="users\nPK id · UK alias · FK org_id\nrole · password_hash · active",shape=cylinder]; profiles [label="profiles\nPK/FK user_id · JSON data\nversion · updated_at",shape=cylinder]; sessions [label="sessions\nPK token_hash · FK user_id\ncsrf · expiry",shape=cylinder]; invites [label="invites\nPK id · UK token_hash\nnullable FK target_user · role",shape=cylinder]; settings [label="settings\nPK key · value",shape=cylinder]; limits [label="rate_limits\nPK salted key · count · expiry",shape=cylinder]; org -> users [label="1 : N org_id"]; users -> profiles [label="1 : 0..1 user_id"]; users -> sessions [label="1 : N user_id"]; users -> invites [label="0..1 : N reset target"]; }