Definition of a report section. Attributes: id: Unique identifier for the section. name: Human-readable name for display. description: What this section analyzes. queries: List of query identifiers to run for this section. scope: What scope this section a
| 25 | |
| 26 | @dataclass |
| 27 | class Section: |
| 28 | """Definition of a report section. |
| 29 | |
| 30 | Attributes: |
| 31 | id: Unique identifier for the section. |
| 32 | name: Human-readable name for display. |
| 33 | description: What this section analyzes. |
| 34 | queries: List of query identifiers to run for this section. |
| 35 | scope: What scope this section applies to |
| 36 | ('server', 'database', 'schema'). |
| 37 | """ |
| 38 | id: str |
| 39 | name: str |
| 40 | description: str |
| 41 | queries: list[str] |
| 42 | scope: list[str] = field( |
| 43 | default_factory=lambda: ['server', 'database', 'schema'] |
| 44 | ) |
| 45 | |
| 46 | |
| 47 | @dataclass |