|
| 1 | +# Generated by Django 5.0.3 on 2024-06-06 16:14 |
| 2 | + |
| 3 | +import django.db.models.deletion |
| 4 | +from django.db import migrations, models |
| 5 | + |
| 6 | + |
| 7 | +class Migration(migrations.Migration): |
| 8 | + |
| 9 | + dependencies = [ |
| 10 | + ('signals', '0008_remove_geographyunit_postal'), |
| 11 | + ] |
| 12 | + |
| 13 | + operations = [ |
| 14 | + migrations.CreateModel( |
| 15 | + name='DemographicScope', |
| 16 | + fields=[ |
| 17 | + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 18 | + ('created', models.DateTimeField(auto_now_add=True)), |
| 19 | + ('modified', models.DateTimeField(auto_now=True)), |
| 20 | + ('name', models.CharField(help_text='Name', max_length=128, unique=True)), |
| 21 | + ], |
| 22 | + options={ |
| 23 | + 'abstract': False, |
| 24 | + }, |
| 25 | + ), |
| 26 | + migrations.CreateModel( |
| 27 | + name='GeographicScope', |
| 28 | + fields=[ |
| 29 | + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 30 | + ('created', models.DateTimeField(auto_now_add=True)), |
| 31 | + ('modified', models.DateTimeField(auto_now=True)), |
| 32 | + ('name', models.CharField(help_text='Name', max_length=128, unique=True)), |
| 33 | + ], |
| 34 | + options={ |
| 35 | + 'abstract': False, |
| 36 | + }, |
| 37 | + ), |
| 38 | + migrations.CreateModel( |
| 39 | + name='Licence', |
| 40 | + fields=[ |
| 41 | + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 42 | + ('created', models.DateTimeField(auto_now_add=True)), |
| 43 | + ('modified', models.DateTimeField(auto_now=True)), |
| 44 | + ('name', models.CharField(help_text='Name', max_length=128, unique=True)), |
| 45 | + ], |
| 46 | + options={ |
| 47 | + 'abstract': False, |
| 48 | + }, |
| 49 | + ), |
| 50 | + migrations.CreateModel( |
| 51 | + name='Organisation', |
| 52 | + fields=[ |
| 53 | + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 54 | + ('created', models.DateTimeField(auto_now_add=True)), |
| 55 | + ('modified', models.DateTimeField(auto_now=True)), |
| 56 | + ('organisation_name', models.CharField(help_text='Organisation Name', max_length=128, unique=True)), |
| 57 | + ], |
| 58 | + options={ |
| 59 | + 'abstract': False, |
| 60 | + }, |
| 61 | + ), |
| 62 | + migrations.RemoveField( |
| 63 | + model_name='signal', |
| 64 | + name='available_geography', |
| 65 | + ), |
| 66 | + migrations.AddField( |
| 67 | + model_name='signal', |
| 68 | + name='age_breakdown', |
| 69 | + field=models.CharField(choices=[('0-17', '0-17'), ('18-64', '18-64'), ('65+', '65+')], help_text='Age Breakdown', max_length=128, null=True), |
| 70 | + ), |
| 71 | + migrations.AddField( |
| 72 | + model_name='signal', |
| 73 | + name='data_censoring', |
| 74 | + field=models.TextField(blank=True, help_text='Data Censoring', null=True), |
| 75 | + ), |
| 76 | + migrations.AddField( |
| 77 | + model_name='signal', |
| 78 | + name='gender_breakdown', |
| 79 | + field=models.BooleanField(default=False, help_text='Gender Breakdown'), |
| 80 | + ), |
| 81 | + migrations.AddField( |
| 82 | + model_name='signal', |
| 83 | + name='missingness', |
| 84 | + field=models.TextField(blank=True, help_text='Missingness', null=True), |
| 85 | + ), |
| 86 | + migrations.AddField( |
| 87 | + model_name='signal', |
| 88 | + name='race_breakdown', |
| 89 | + field=models.BooleanField(default=False, help_text='Race Breakdown'), |
| 90 | + ), |
| 91 | + migrations.AddField( |
| 92 | + model_name='signal', |
| 93 | + name='reporting_cadence', |
| 94 | + field=models.CharField(choices=[('daily', 'Daily'), ('weekly', 'Weekly')], help_text='Reporting Cadence', max_length=128, null=True), |
| 95 | + ), |
| 96 | + migrations.AddField( |
| 97 | + model_name='signal', |
| 98 | + name='restrictions', |
| 99 | + field=models.TextField(blank=True, help_text='Restrictions', null=True), |
| 100 | + ), |
| 101 | + migrations.AddField( |
| 102 | + model_name='signal', |
| 103 | + name='severenity_pyramid_rungs', |
| 104 | + field=models.CharField(choices=[('population', 'Population'), ('infected', 'Infected'), ('symptomatic', 'Symptomatic'), ('outpatient_visit', 'Outpatient visit'), ('ascertained', 'Ascertained (case)'), ('hospitalized', 'Hospitalized'), ('icu', 'ICU'), ('dead', 'Dead')], help_text='Severity Pyramid Rungs', max_length=128, null=True), |
| 105 | + ), |
| 106 | + migrations.AddField( |
| 107 | + model_name='signal', |
| 108 | + name='temporal_scope_end', |
| 109 | + field=models.DateField(blank=True, help_text='Temporal Scope End', null=True), |
| 110 | + ), |
| 111 | + migrations.AddField( |
| 112 | + model_name='signal', |
| 113 | + name='temporal_scope_end_note', |
| 114 | + field=models.TextField(blank=True, help_text='Temporal Scope End Note', null=True), |
| 115 | + ), |
| 116 | + migrations.AddField( |
| 117 | + model_name='signal', |
| 118 | + name='temporal_scope_start', |
| 119 | + field=models.DateField(blank=True, help_text='Temporal Scope Start', null=True), |
| 120 | + ), |
| 121 | + migrations.AddField( |
| 122 | + model_name='signal', |
| 123 | + name='temporal_scope_start_note', |
| 124 | + field=models.TextField(blank=True, help_text='Temporal Scope Start Note', null=True), |
| 125 | + ), |
| 126 | + migrations.AddField( |
| 127 | + model_name='signal', |
| 128 | + name='typical_reporting_lag', |
| 129 | + field=models.CharField(blank=True, help_text='Typical Reporting Lag', max_length=128, null=True), |
| 130 | + ), |
| 131 | + migrations.AddField( |
| 132 | + model_name='signal', |
| 133 | + name='typical_revision_cadence', |
| 134 | + field=models.CharField(blank=True, help_text='Typical Revision Cadence', max_length=512, null=True), |
| 135 | + ), |
| 136 | + migrations.AddField( |
| 137 | + model_name='signal', |
| 138 | + name='demographic_scope', |
| 139 | + field=models.ManyToManyField(help_text='Demographic Scope', related_name='signals', to='signals.demographicscope'), |
| 140 | + ), |
| 141 | + migrations.AddField( |
| 142 | + model_name='signal', |
| 143 | + name='geographic_scope', |
| 144 | + field=models.ManyToManyField(help_text='Geographic Scope', to='signals.geographicscope'), |
| 145 | + ), |
| 146 | + migrations.AddField( |
| 147 | + model_name='signal', |
| 148 | + name='licence', |
| 149 | + field=models.ManyToManyField(help_text='Licence', related_name='signals', to='signals.licence'), |
| 150 | + ), |
| 151 | + migrations.AddField( |
| 152 | + model_name='signal', |
| 153 | + name='organisations_access_list', |
| 154 | + field=models.ManyToManyField(help_text='Organisations Access List. Who may access this signal?', related_name='accessed_signals', to='signals.organisation'), |
| 155 | + ), |
| 156 | + migrations.AddField( |
| 157 | + model_name='signal', |
| 158 | + name='organisations_sharing_list', |
| 159 | + field=models.ManyToManyField(help_text='Organisations Sharing List. Who may be told about this signal?', related_name='shared_signals', to='signals.organisation'), |
| 160 | + ), |
| 161 | + migrations.CreateModel( |
| 162 | + name='GeographySignal', |
| 163 | + fields=[ |
| 164 | + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 165 | + ('aggregated_by_delphi', models.BooleanField(default=False)), |
| 166 | + ('geography', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='signals.geography')), |
| 167 | + ('signal', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='signals.signal')), |
| 168 | + ], |
| 169 | + options={ |
| 170 | + 'unique_together': {('geography', 'signal')}, |
| 171 | + }, |
| 172 | + ), |
| 173 | + ] |
0 commit comments