# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
import django.core.validators


class Migration(migrations.Migration):
    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='ReferenceGas',
            fields=[
                ('id', models.AutoField(serialize=False, auto_created=True, primary_key=True, verbose_name='ID')),
                ('is_active', models.BooleanField(default=True, editable=False)),
                ('name', models.CharField(unique=True, max_length=63, verbose_name='name')),
                ('number', models.CharField(max_length=63, verbose_name='number')),
                ('expires_at', models.DateField(blank=True, verbose_name='expiration date', null=True)),
                ('substance', models.CharField(max_length=1, default='B', choices=[('B', 'n-Butanol'), ('H', 'H2S')])),
                ('concentration', models.FloatField(validators=[django.core.validators.MinValueValidator(1.0)],
                                                    verbose_name='concentration')),
                (
                'certificate', models.FileField(blank=True, upload_to='refgas_certs', verbose_name='certificate file')),
                ('comment', models.TextField(max_length=1023, blank=True, verbose_name='comment')),
                ('in_service_since', models.DateField(blank=True, verbose_name='in service since', null=True)),
            ],
            options={
                'verbose_name': 'reference gas',
                'verbose_name_plural': 'reference gases',
            },
            bases=(models.Model,),
        ),
    ]
