26 lines
1.3 KiB
Python
26 lines
1.3 KiB
Python
![]() |
# Generated by Django 5.2.6 on 2025-09-06 10:52
|
|||
|
|
|||
|
import django.db.models.deletion
|
|||
|
from django.db import migrations, models
|
|||
|
|
|||
|
|
|||
|
class Migration(migrations.Migration):
|
|||
|
|
|||
|
dependencies = [
|
|||
|
('risks', '0001_initial'),
|
|||
|
]
|
|||
|
|
|||
|
operations = [
|
|||
|
migrations.CreateModel(
|
|||
|
name='ResidualRisk',
|
|||
|
fields=[
|
|||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|||
|
('likelihood', models.IntegerField(choices=[(1, 'Very low – occurs less than once every 5 years'), (2, 'Low – once every 1–5 years'), (3, 'Likely – once per year or more'), (4, 'Very likely – multiple times per year/monthly')], default=1)),
|
|||
|
('impact', models.IntegerField(choices=[(1, 'Low (< 1,000 € – minor operational impact)'), (2, 'Medium (1,000–5,000 € – local impact)'), (3, 'High (5,000–15,000 € – team-level impact)'), (4, 'Severe (50,000–100,000 € – regional impact)'), (5, 'Critical (> 100,000 € – existential threat)')], default=1)),
|
|||
|
('score', models.IntegerField(editable=False)),
|
|||
|
('level', models.CharField(editable=False, max_length=50)),
|
|||
|
('risk', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='residual_risk', to='risks.risk')),
|
|||
|
],
|
|||
|
),
|
|||
|
]
|