|
1 |
| -# Generated by Django 3.2.25 on 2025-02-25 05:26 |
| 1 | +# Generated by Django 3.2.25 on 2025-02-27 20:06 |
2 | 2 |
|
3 |
| -from django.db import migrations, models |
4 | 3 | import django.db.models.deletion
|
| 4 | +from django.db import migrations, models |
5 | 5 |
|
6 | 6 |
|
7 | 7 | class Migration(migrations.Migration):
|
8 |
| - |
9 | 8 | dependencies = [
|
10 |
| - ('orgs', '0041_add_at_tracking_fields'), |
11 |
| - ('seed', '0242_add_meter_types'), |
| 9 | + ("orgs", "0041_add_at_tracking_fields"), |
| 10 | + ("seed", "0242_add_meter_types"), |
12 | 11 | ]
|
13 | 12 |
|
14 | 13 | operations = [
|
15 | 14 | migrations.CreateModel(
|
16 |
| - name='StatisticsSetup', |
| 15 | + name="StatisticsSetup", |
17 | 16 | fields=[
|
18 |
| - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
19 |
| - ('gfa_units', models.CharField(choices=[('ft2', 'ft2'), ('m2', ',2')], default='ft2', max_length=20)), |
20 |
| - ('electricity_units', models.CharField(choices=[('GJ', 'GJ'), ('kBtu', 'kBtu'), ('kWh', 'kWh'), ('MBtu/MMBtu', 'MBtu/MMBtu'), ('MWh', 'MWh')], default=None, max_length=50)), |
21 |
| - ('natural_gas_units', models.CharField(choices=[('GJ', 'GJ'), ('kBtu', 'kBtu'), ('MBtu/MMBtu', 'MBtu/MMBtu'), ('therms', 'therms'), ('kWh', 'kWh'), ('kcf', 'kcf'), ('Mcf', 'Mcf')], default=None, max_length=50)), |
22 |
| - ('electricity_column', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='electricity_column', to='seed.column')), |
23 |
| - ('gfa_column', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='gfa_column', to='seed.column')), |
24 |
| - ('natural_gas_column', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='natural_gas_column', to='seed.column')), |
25 |
| - ('organization', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='orgs.organization')), |
| 17 | + ("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")), |
| 18 | + ("gfa_units", models.CharField(choices=[("ft2", "ft2"), ("m2", ",2")], default="ft2", max_length=20)), |
| 19 | + ( |
| 20 | + "electricity_units", |
| 21 | + models.CharField( |
| 22 | + choices=[("GJ", "GJ"), ("kBtu", "kBtu"), ("kWh", "kWh"), ("MBtu/MMBtu", "MBtu/MMBtu"), ("MWh", "MWh")], |
| 23 | + default=None, |
| 24 | + max_length=50, |
| 25 | + ), |
| 26 | + ), |
| 27 | + ( |
| 28 | + "natural_gas_units", |
| 29 | + models.CharField( |
| 30 | + choices=[ |
| 31 | + ("GJ", "GJ"), |
| 32 | + ("kBtu", "kBtu"), |
| 33 | + ("MBtu/MMBtu", "MBtu/MMBtu"), |
| 34 | + ("therms", "therms"), |
| 35 | + ("kWh", "kWh"), |
| 36 | + ("kcf", "kcf"), |
| 37 | + ("Mcf", "Mcf"), |
| 38 | + ], |
| 39 | + default=None, |
| 40 | + max_length=50, |
| 41 | + ), |
| 42 | + ), |
| 43 | + ( |
| 44 | + "electricity_eui_units", |
| 45 | + models.CharField( |
| 46 | + choices=[ |
| 47 | + ("kBtu/ft2", "kBtu/ft2"), |
| 48 | + ("kBtu/m2", "kBtu/m2"), |
| 49 | + ("kWh/ft2", "kWh/ft2"), |
| 50 | + ("kWh/m2", "kWh/m2"), |
| 51 | + ("GJ/m2", "GJ/m2"), |
| 52 | + ("GJ/ft2", "GJ/ft2"), |
| 53 | + ], |
| 54 | + default="kBtu/ft2", |
| 55 | + max_length=50, |
| 56 | + ), |
| 57 | + ), |
| 58 | + ( |
| 59 | + "natural_gas_eui_units", |
| 60 | + models.CharField( |
| 61 | + choices=[ |
| 62 | + ("kBtu/ft2", "kBtu/ft2"), |
| 63 | + ("kBtu/m2", "kBtu/m2"), |
| 64 | + ("kWh/ft2", "kWh/ft2"), |
| 65 | + ("kWh/m2", "kWh/m2"), |
| 66 | + ("GJ/m2", "GJ/m2"), |
| 67 | + ("GJ/ft2", "GJ/ft2"), |
| 68 | + ], |
| 69 | + default="kBtu/ft2", |
| 70 | + max_length=50, |
| 71 | + ), |
| 72 | + ), |
| 73 | + ( |
| 74 | + "electricity_column", |
| 75 | + models.ForeignKey( |
| 76 | + null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="electricity_column", to="seed.column" |
| 77 | + ), |
| 78 | + ), |
| 79 | + ( |
| 80 | + "electricity_eui_column", |
| 81 | + models.ForeignKey( |
| 82 | + null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="electricity_eui_column", to="seed.column" |
| 83 | + ), |
| 84 | + ), |
| 85 | + ( |
| 86 | + "gfa_column", |
| 87 | + models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="gfa_column", to="seed.column"), |
| 88 | + ), |
| 89 | + ( |
| 90 | + "natural_gas_column", |
| 91 | + models.ForeignKey( |
| 92 | + null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="natural_gas_column", to="seed.column" |
| 93 | + ), |
| 94 | + ), |
| 95 | + ( |
| 96 | + "natural_gas_eui_column", |
| 97 | + models.ForeignKey( |
| 98 | + null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="natural_gas_eui_column", to="seed.column" |
| 99 | + ), |
| 100 | + ), |
| 101 | + ("organization", models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to="orgs.organization")), |
26 | 102 | ],
|
27 | 103 | ),
|
28 | 104 | ]
|
0 commit comments