# -*- 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'),
        ),
    ]

[((2316, 2430), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'blank': '(True)', 'null': '(True)', 'on_delete': 'django.db.models.deletion.CASCADE', 'to': '"""accounts.RoleList"""'}), "(blank=True, null=True, on_delete=django.db.models.\n    deletion.CASCADE, to='accounts.RoleList')\n", (2333, 2430), False, 'from django.db import migrations, models\n'), ((474, 567), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (490, 567), False, 'from django.db import migrations, models\n'), ((595, 652), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(128)', 'verbose_name': '"""password"""'}), "(max_length=128, verbose_name='password')\n", (611, 652), False, 'from django.db import migrations, models\n'), ((686, 756), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'blank': '(True)', 'null': '(True)', 'verbose_name': '"""last login"""'}), "(blank=True, null=True, verbose_name='last login')\n", (706, 756), False, 'from django.db import migrations, models\n'), ((788, 847), 'django.db.models.CharField', 'models.CharField', ([], {'db_index': '(True)', 'max_length': '(40)', 'unique': '(True)'}), '(db_index=True, max_length=40, unique=True)\n', (804, 847), False, 'from django.db import migrations, models\n'), ((876, 909), 'django.db.models.EmailField', 'models.EmailField', ([], {'max_length': '(255)'}), '(max_length=255)\n', (893, 909), False, 'from django.db import migrations, models\n'), ((942, 976), 'django.db.models.BooleanField', 'models.BooleanField', ([], {'default': '(False)'}), '(default=False)\n', (961, 976), False, 'from django.db import migrations, models\n'), ((1012, 1046), 'django.db.models.BooleanField', 'models.BooleanField', ([], {'default': '(False)'}), '(default=False)\n', (1031, 1046), False, 'from django.db import migrations, models\n'), ((1078, 1132), 'django.db.models.CharField', 'models.CharField', ([], {'blank': '(True)', 'max_length': '(64)', 'null': '(True)'}), '(blank=True, max_length=64, null=True)\n', (1094, 1132), False, 'from django.db import migrations, models\n'), ((1165, 1208), 'django.db.models.CharField', 'models.CharField', ([], {'blank': '(True)', 'max_length': '(64)'}), '(blank=True, max_length=64)\n', (1181, 1208), False, 'from django.db import migrations, models\n'), ((1420, 1513), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (1436, 1513), False, 'from django.db import migrations, models\n'), ((1537, 1568), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(64)'}), '(max_length=64)\n', (1553, 1568), False, 'from django.db import migrations, models\n'), ((1595, 1627), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(255)'}), '(max_length=255)\n', (1611, 1627), False, 'from django.db import migrations, models\n'), ((1761, 1854), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (1777, 1854), False, 'from django.db import migrations, models\n'), ((1878, 1909), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(64)'}), '(max_length=64)\n', (1894, 1909), False, 'from django.db import migrations, models\n'), ((1941, 1997), 'django.db.models.ManyToManyField', 'models.ManyToManyField', ([], {'blank': '(True)', 'to': '"""appconf.Project"""'}), "(blank=True, to='appconf.Project')\n", (1963, 1997), False, 'from django.db import migrations, models\n'), ((2031, 2095), 'django.db.models.ManyToManyField', 'models.ManyToManyField', ([], {'blank': '(True)', 'to': '"""accounts.PermissionList"""'}), "(blank=True, to='accounts.PermissionList')\n", (2053, 2095), False, 'from django.db import migrations, models\n'), ((2125, 2180), 'django.db.models.ManyToManyField', 'models.ManyToManyField', ([], {'blank': '(True)', 'to': '"""cmdb.HostGroup"""'}), "(blank=True, to='cmdb.HostGroup')\n", (2147, 2180), False, 'from django.db import migrations, models\n')]