# Generated by Django 2.2.4 on 2022-09-28 09:26

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('mosquito', '0017_auto_20200608_1709'),
    ]

    operations = [
        migrations.CreateModel(
            name='WeatherLog',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('data_time', models.DateTimeField(blank=True, null=True, verbose_name='时间')),
                ('device_id', models.CharField(max_length=100, verbose_name='台站编号')),
                ('device_name', models.CharField(blank=True, max_length=255, null=True, verbose_name='台站名称')),
                ('env_temp', models.CharField(blank=True, max_length=255, null=True, verbose_name='环温')),
                ('temperature1', models.CharField(blank=True, max_length=255, null=True, verbose_name='温度1')),
                ('temperature2', models.CharField(blank=True, max_length=255, null=True, verbose_name='温度2')),
                ('temperature3', models.CharField(blank=True, max_length=255, null=True, verbose_name='温度3')),
                ('temperature4', models.CharField(blank=True, max_length=255, null=True, verbose_name='温度4')),
                ('temperature5', models.CharField(blank=True, max_length=255, null=True, verbose_name='温度5')),
                ('dew_point_temp', models.CharField(blank=True, max_length=255, null=True, verbose_name='露点温度')),
                ('env_humi', models.CharField(blank=True, max_length=255, null=True, verbose_name='环湿')),
                ('soil_humi1', models.CharField(blank=True, max_length=255, null=True, verbose_name='土湿1')),
                ('soil_humi2', models.CharField(blank=True, max_length=255, null=True, verbose_name='土湿2')),
                ('soil_humi3', models.CharField(blank=True, max_length=255, null=True, verbose_name='土湿3')),
                ('co2', models.CharField(blank=True, max_length=255, null=True, verbose_name='CO2')),
                ('evaporation', models.CharField(blank=True, max_length=255, null=True, verbose_name='蒸发')),
                ('air_pressure', models.CharField(blank=True, max_length=255, null=True, verbose_name='气压')),
                ('total_radiation_1_ins', models.CharField(blank=True, max_length=255, null=True, verbose_name='总辐射1瞬时')),
                ('scat_radiation_ins', models.CharField(blank=True, max_length=255, null=True, verbose_name='散辐射瞬时')),
                ('direct_radiation_ins', models.CharField(blank=True, max_length=255, null=True, verbose_name='直接辐射瞬时')),
                ('total_radiation_2_ins', models.CharField(blank=True, max_length=255, null=True, verbose_name='总辐射2瞬时')),
                ('net_radiation_ins', models.CharField(blank=True, max_length=255, null=True, verbose_name='净辐射瞬时')),
                ('pho_radiation_ins', models.CharField(blank=True, max_length=255, null=True, verbose_name='光合辐射瞬时')),
                ('uv_radiation_ins', models.CharField(blank=True, max_length=255, null=True, verbose_name='紫外辐射瞬时')),
                ('wind_direction', models.CharField(blank=True, max_length=255, null=True, verbose_name='风向')),
                ('wind_speed_ins', models.CharField(blank=True, max_length=255, null=True, verbose_name='瞬时风速')),
                ('wind_speed_2mins', models.CharField(blank=True, max_length=255, null=True, verbose_name='2分钟风速')),
                ('wind_speed_10mins', models.CharField(blank=True, max_length=255, null=True, verbose_name='10分钟风速')),
                ('rainfall_interval_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='雨量间隔累计')),
                ('sunshine_time_interval_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='日照时间隔累计')),
                ('total_radiation_1_interval_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='总辐射1间隔累计')),
                ('scat_radiation_interval_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='散辐射间隔累计')),
                ('direct_radiation_interval_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='直接辐射间隔累计')),
                ('total_radiation_2_interval_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='总辐射2间隔累计')),
                ('net_radiation_interval_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='净辐射间隔累计')),
                ('pho_radiation_interval_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='光合辐射间隔累计')),
                ('uv_radiation_interval_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='紫外辐射间隔累计')),
                ('rainfall_daily_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='雨量日累计')),
                ('sunshine_time_daily_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='日照时日累计')),
                ('total_radiation_1_daily_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='总辐射1日累计')),
                ('scat_radiation_daily_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='散辐射日累计')),
                ('direct_radiation_daily_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='直接辐射日累计')),
                ('total_radiation_2_daily_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='总辐射2日累计')),
                ('net_radiation_daily_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='净辐射日累计')),
                ('pho_radiation_daily_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='光合辐射日累计')),
                ('uv_radiation_daily_cum', models.CharField(blank=True, max_length=255, null=True, verbose_name='紫外辐射日累计')),
                ('light_intensity', models.CharField(blank=True, max_length=255, null=True, verbose_name='光照度')),
                ('power', models.CharField(blank=True, max_length=255, null=True, verbose_name='电量')),
                ('pm25', models.CharField(blank=True, max_length=255, null=True, verbose_name='PM2.5')),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
            ],
            options={
                'verbose_name': '气象台数据日志',
                'verbose_name_plural': '气象台数据日志',
                'db_table': 'weather_log',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='WeatherStationInfo',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('device_id', models.CharField(max_length=100, unique=True, verbose_name='气象台ID')),
                ('device_name', models.CharField(blank=True, max_length=100, null=True, verbose_name='气象台名称')),
                ('longitude', models.FloatField(blank=True, null=True, verbose_name='经度')),
                ('latitude', models.FloatField(blank=True, null=True, verbose_name='维度')),
            ],
            options={
                'verbose_name': '气象台设备',
                'verbose_name_plural': '气象台设备',
                'db_table': 'weather_station_info',
                'managed': False,
            },
        ),
    ]
