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

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


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

    operations = [
        migrations.CreateModel(
            name='WinoseUser',
            fields=[
                ('id', models.AutoField(verbose_name='ID', auto_created=True, primary_key=True, serialize=False)),
                ('password', models.CharField(verbose_name='password', max_length=128)),
                ('last_login', models.DateTimeField(default=django.utils.timezone.now, verbose_name='last login')),
                ('is_active', models.BooleanField(default=True, editable=False)),
                ('email', models.EmailField(blank=True, verbose_name='E-mail', max_length=127)),
                ('phone', models.CharField(blank=True, verbose_name='Phone', max_length=63)),
                ('mobile', models.CharField(blank=True, verbose_name='Mobile', max_length=63)),
                ('first_name', models.CharField(verbose_name='first name', max_length=127,
                                                validators=[django.core.validators.MinLengthValidator(2)])),
                ('last_name', models.CharField(verbose_name='last name', max_length=63,
                                               validators=[django.core.validators.MinLengthValidator(2)])),
                ('gender', models.CharField(default='U', max_length=1,
                                            choices=[('U', 'unknown'), ('M', 'male'), ('F', 'female'),
                                                     ('N', 'not applicable')])),
                ('username', models.CharField(verbose_name='user name', max_length=31, unique=True)),
                ('user_group', models.CharField(blank=True, max_length=1,
                                                choices=[('A', 'lab technician'), ('L', 'head of olfactometry'),
                                                         ('Z', 'quality management')])),
                ('is_superuser', models.BooleanField(default=False)),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
            },
            bases=(models.Model,),
        ),
    ]
