# Generated by Django 4.0.5 on 2022-06-30 12:41

from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('frontend', '0002_rawmaterialmodel_checked_by_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='AlcoholModel',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('reference', models.CharField(max_length=25, unique=True)),
                ('supplier', models.CharField(max_length=55)),
                ('sample_description', models.CharField(max_length=255)),
                ('date_analyzed', models.DateField(default=django.utils.timezone.now)),
                ('alcohol_strength', models.IntegerField()),
                ('appearance', models.CharField(default='CLEAR & COLOURLESS', max_length=24)),
                ('ph', models.FloatField(blank=True, null=True)),
                ('conductivity', models.FloatField(blank=True, null=True)),
                ('foaming_xter', models.CharField(default='NIL', max_length=24)),
                ('total_acidity', models.CharField(blank=True, max_length=25, null=True)),
                ('methanol_content', models.CharField(blank=True, max_length=25, null=True)),
                ('total_ester', models.CharField(blank=True, max_length=25, null=True)),
                ('total_aldehyde', models.CharField(blank=True, max_length=25, null=True)),
                ('furfural', models.CharField(default='ND', max_length=25)),
                ('higher_roh_as_amyl', models.CharField(default='ND', max_length=25)),
                ('tasting_score', models.CharField(max_length=25)),
                ('grade', models.CharField(choices=[('GRADE 1', 'GRADE 1'), ('LOWER GRADE 1', 'LOWER GRADE 1'), ('GRADE 2', 'GRADE 2'), ('RUM SPIRIT GRADE', 'RUM SPIRIT GRADE')], max_length=25)),
                ('comment', models.TextField()),
                ('analysed_by', models.CharField(max_length=25)),
                ('username', models.CharField(max_length=25)),
                ('material_info', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='frontend.rawmaterialmodel')),
            ],
        ),
    ]
