text: # -*- coding: utf-8 -*-
  # Generated by Django 1.11.20 on 2019-05-02 20:24
  from __future__ import unicode_literals
  
  import db_comments.model_mixins
  from decimal import Decimal
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('api', '0125_lowercase_renewable_fuel'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='PetroleumCarbonIntensity',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('create_timestamp', models.DateTimeField(auto_now_add=True, null=True)),
                  ('update_timestamp', models.DateTimeField(auto_now=True, null=True)),
                  ('effective_date', models.DateField(blank=True, null=True)),
                  ('expiration_date', models.DateField(blank=True, null=True)),
                  ('density', models.DecimalField(blank=True, decimal_places=2, default=Decimal('0.00'), max_digits=5, null=True)),
              ],
              options={
                  'db_table': 'petroleum_carbon_intensity',
              },
              bases=(models.Model, db_comments.model_mixins.DBComments),
          ),
          migrations.CreateModel(
              name='PetroleumCarbonIntensityCategory',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('create_timestamp', models.DateTimeField(auto_now_add=True, null=True)),
                  ('update_timestamp', models.DateTimeField(auto_now=True, null=True)),
                  ('display_order', models.IntegerField()),
                  ('effective_date', models.DateField(blank=True, null=True)),
                  ('expiration_date', models.DateField(blank=True, null=True)),
                  ('name', models.CharField(blank=True, max_length=255, null=True, unique=True)),
                  ('create_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='api_petroleumcarbonintensitycategory_CREATE_USER', to=settings.AUTH_USER_MODEL)),
                  ('update_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='api_petroleumcarbonintensitycategory_UPDATE_USER', to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'db_table': 'petroleum_carbon_intensity_category',
              },
              bases=(models.Model, db_comments.model_mixins.DBComments),
          ),
          migrations.AddField(
              model_name='petroleumcarbonintensity',
              name='category',
              field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='petroleum_carbon_intensity', to='api.PetroleumCarbonIntensityCategory'),
          ),
          migrations.AddField(
              model_name='petroleumcarbonintensity',
              name='create_user',
              field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='api_petroleumcarbonintensity_CREATE_USER', to=settings.AUTH_USER_MODEL),
          ),
          migrations.AddField(
              model_name='petroleumcarbonintensity',
              name='update_user',
              field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='api_petroleumcarbonintensity_UPDATE_USER', to=settings.AUTH_USER_MODEL),
          ),
      ]
  