Business fields
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Company name. Maximum 255 characters. |
industry | string | No | Sector the business operates in (e.g. crypto, banking). |
country | string | No | Country of operation (e.g. USA, Germany). |
created_at | datetime | No | Timestamp set automatically when the business is created. |
name is the only required field. It must be non-empty and no longer than 255 characters. Submitting a blank name or one that exceeds the limit returns a 422 validation error.Adding a business
The form at the top of the businesses list lets you register a new company immediately.Open the businesses list
Navigate to
http://localhost:8000/businesses. The add-business form appears at the top of the page.Fill in the form
Enter the company Name (required). Optionally add an Industry and Country. Both optional fields can be left blank.
Viewing a business
Click any business name in the list to open its detail page at/businesses/{id}.
The detail page shows:
Latest risk score
The numeric score (0–100) from the most recent evaluation, along with its risk level: low, medium, high, or critical.
Factor breakdown
The individual components that produced the score:
base_score, industry_modifier, country_modifier, noise, and final_score.Evaluate Risk button
Triggers a new risk evaluation immediately. The result updates the page without a full reload.
Risk History link
Opens the full evaluation history for the business, showing every score ever recorded.