# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-04-18 05:56
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('cmdb', '0001_initial'),
        ('appconf', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='UserInfo',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
                ('username', models.CharField(db_index=True, max_length=40, unique=True)),
                ('email', models.EmailField(max_length=255)),
                ('is_active', models.BooleanField(default=False)),
                ('is_superuser', models.BooleanField(default=False)),
                ('nickname', models.CharField(blank=True, max_length=64, null=True)),
                ('ldap_name', models.CharField(blank=True, max_length=64)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='PermissionList',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=64)),
                ('url', models.CharField(max_length=255)),
            ],
        ),
        migrations.CreateModel(
            name='RoleList',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=64)),
                ('delivery', models.ManyToManyField(blank=True, to='appconf.Project')),
                ('permission', models.ManyToManyField(blank=True, to='accounts.PermissionList')),
                ('webssh', models.ManyToManyField(blank=True, to='cmdb.HostGroup')),
            ],
        ),
        migrations.AddField(
            model_name='userinfo',
            name='role',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='accounts.RoleList'),
        ),
    ]

[(57, 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'blank': '(True)', 'null': '(True)', 'on_delete': 'django.db.models.deletion.CASCADE', 'to': '"""accounts.RoleList"""'}), False, 'from django.db import migrations, models\n'), (22, 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), False, 'from django.db import migrations, models\n'), (23, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(128)', 'verbose_name': '"""password"""'}), False, 'from django.db import migrations, models\n'), (24, 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'blank': '(True)', 'null': '(True)', 'verbose_name': '"""last login"""'}), False, 'from django.db import migrations, models\n'), (25, 'django.db.models.CharField', 'models.CharField', ([], {'db_index': '(True)', 'max_length': '(40)', 'unique': '(True)'}), False, 'from django.db import migrations, models\n'), (26, 'django.db.models.EmailField', 'models.EmailField', ([], {'max_length': '(255)'}), False, 'from django.db import migrations, models\n'), (27, 'django.db.models.BooleanField', 'models.BooleanField', ([], {'default': '(False)'}), False, 'from django.db import migrations, models\n'), (28, 'django.db.models.BooleanField', 'models.BooleanField', ([], {'default': '(False)'}), False, 'from django.db import migrations, models\n'), (29, 'django.db.models.CharField', 'models.CharField', ([], {'blank': '(True)', 'max_length': '(64)', 'null': '(True)'}), False, 'from django.db import migrations, models\n'), (30, 'django.db.models.CharField', 'models.CharField', ([], {'blank': '(True)', 'max_length': '(64)'}), False, 'from django.db import migrations, models\n'), (39, 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), False, 'from django.db import migrations, models\n'), (40, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(64)'}), False, 'from django.db import migrations, models\n'), (41, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(255)'}), False, 'from django.db import migrations, models\n'), (47, 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), False, 'from django.db import migrations, models\n'), (48, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(64)'}), False, 'from django.db import migrations, models\n'), (49, 'django.db.models.ManyToManyField', 'models.ManyToManyField', ([], {'blank': '(True)', 'to': '"""appconf.Project"""'}), False, 'from django.db import migrations, models\n'), (50, 'django.db.models.ManyToManyField', 'models.ManyToManyField', ([], {'blank': '(True)', 'to': '"""accounts.PermissionList"""'}), False, 'from django.db import migrations, models\n'), (51, 'django.db.models.ManyToManyField', 'models.ManyToManyField', ([], {'blank': '(True)', 'to': '"""cmdb.HostGroup"""'}), False, 'from django.db import migrations, models\n')]