Skip to content

Database Schema

Generated by prisma-markdown

default

erDiagram
"runs" {
  Int id PK
  String name
  String script_path
  BigInt started_at
  BigInt ended_at "nullable"
  String status
  Int concurrency
  Float rate_limit
  String control_socket
}
"requests" {
  Int id PK
  Int run_id FK
  Int seq
  BigInt sent_at
  Float duration_ms "nullable"
  String method
  String url
  Int status_code "nullable"
  String error "nullable"
  Int bytes_in "nullable"
  Int bytes_out "nullable"
  Int worker_id "nullable"
}
"request_headers" {
  Int id PK
  Int request_id FK
  HeaderDirection direction
  String name
  String value
}
"request_bodies" {
  Int id PK
  Int request_id FK
  HeaderDirection direction
  Bytes content "nullable"
  Boolean truncated
}
"metric_windows" {
  Int id PK
  Int run_id FK
  String endpoint
  DateTime start
  DateTime end
  Int count
  Int fail_count
  Float min_latency
  Float max_latency
  Float avg_latency
  Float rps
}
"requests" }o--|| "runs" : run
"request_headers" }o--|| "requests" : request
"request_bodies" }o--|| "requests" : request
"metric_windows" }o--|| "runs" : run

runs

Properties as follows:

  • id:
  • name:
  • script_path:
  • started_at:
  • ended_at:
  • status:
  • concurrency:
  • rate_limit:
  • control_socket:

requests

Properties as follows:

  • id:
  • run_id:
  • seq:
  • sent_at:
  • duration_ms:
  • method:
  • url:
  • status_code:
  • error:
  • bytes_in:
  • bytes_out:
  • worker_id:

request_headers

Properties as follows:

  • id:
  • request_id:
  • direction:
  • name:
  • value:

request_bodies

Properties as follows:

  • id:
  • request_id:
  • direction:
  • content:
  • truncated:

metric_windows

Properties as follows:

  • id:
  • run_id:
  • endpoint:
  • start:
  • end:
  • count:
  • fail_count:
  • min_latency:
  • max_latency:
  • avg_latency:
  • rps: