Data model

"ALERT_DEFINITION" {
  shape: sql_table
  "id": UUID {constraint: primary_key}
  "base_resolution_time_in_hours": INTEGER 
  "creator_handle": VARCHAR 
  "description": VARCHAR 
  "enabled": BOOLEAN 
  "howto_link": VARCHAR 
  "linear_scope_label_id": VARCHAR 
  "name": VARCHAR 
  "owner_type": VARCHAR(255) 
  "runtime": VARCHAR 
  "severity": VARCHAR(255) 
  "source_config": JSONB 
  "source_type": VARCHAR(255) 
}
"ALERT" {
  shape: sql_table
  "id": UUID {constraint: primary_key}
  "definition_id": UUID 
  "instance_id": VARCHAR 
  "instance_title": VARCHAR 
  "linear_issue_id": VARCHAR 
}
"ALERT_STATE" {
  shape: sql_table
  "id": UUID {constraint: primary_key}
  "alert_id": UUID 
  "context": JSONB 
  "status": VARCHAR(255) 
}
"ALERT_DEFINITION"."id" -> "ALERT"."definition_id": {
  source-arrowhead.shape: cf-one-required
  target-arrowhead.shape: cf-many
}
"ALERT"."id" -> "ALERT_STATE"."alert_id": {
  source-arrowhead.shape: cf-one-required
  target-arrowhead.shape: cf-many
}
Hold "Alt" / "Option" to enable pan & zoom