# Generated by Django 2.1.7 on 2021-08-21 08:47

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='dict',
            fields=[
                ('create_date', models.CharField(default='', max_length=45, null=True)),
                ('create_time', models.IntegerField(default=0, null=True)),
                ('update_time', models.IntegerField(default=0, null=True)),
                ('update_date', models.CharField(default='', max_length=45, null=True)),
                ('is_delete', models.IntegerField(default=0)),
                ('create_by', models.CharField(default='', max_length=256, null=True)),
                ('update_by', models.CharField(default='', max_length=256, null=True)),
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('value', models.CharField(default='', max_length=256)),
                ('label', models.CharField(default='', max_length=256)),
                ('type', models.CharField(default='', max_length=256)),
                ('description', models.CharField(default='', max_length=256, null=True)),
                ('sort', models.IntegerField(default=0)),
                ('parent_id', models.CharField(default='', max_length=256, null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='log',
            fields=[
                ('create_date', models.CharField(default='', max_length=45, null=True)),
                ('create_time', models.IntegerField(default=0, null=True)),
                ('update_time', models.IntegerField(default=0, null=True)),
                ('update_date', models.CharField(default='', max_length=45, null=True)),
                ('is_delete', models.IntegerField(default=0)),
                ('create_by', models.CharField(default='', max_length=256, null=True)),
                ('update_by', models.CharField(default='', max_length=256, null=True)),
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('obj', models.CharField(default='', max_length=256)),
                ('data_id', models.CharField(default='', max_length=256, null=True)),
                ('user_id', models.CharField(default='', max_length=256)),
                ('user_name', models.CharField(default='', max_length=256)),
                ('action', models.CharField(default='', max_length=256)),
                ('json', models.CharField(default='', max_length=2048)),
                ('ip', models.CharField(default='', max_length=56)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='menu',
            fields=[
                ('create_date', models.CharField(default='', max_length=45, null=True)),
                ('create_time', models.IntegerField(default=0, null=True)),
                ('update_time', models.IntegerField(default=0, null=True)),
                ('update_date', models.CharField(default='', max_length=45, null=True)),
                ('is_delete', models.IntegerField(default=0)),
                ('create_by', models.CharField(default='', max_length=256, null=True)),
                ('update_by', models.CharField(default='', max_length=256, null=True)),
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('parent_id', models.IntegerField(default=0)),
                ('parent_name', models.CharField(default='', max_length=256, null=True)),
                ('parent_ids', models.CharField(default='', max_length=256, null=True)),
                ('name', models.CharField(default='', max_length=256)),
                ('sort', models.IntegerField(default=0)),
                ('href', models.CharField(default='', max_length=256, null=True)),
                ('base_href', models.CharField(default='', max_length=256, null=True)),
                ('is_show', models.IntegerField(default=0)),
                ('type', models.IntegerField(default=0)),
                ('has_children', models.CharField(default='false', max_length=256, null=True)),
                ('icon', models.CharField(default='', max_length=256, null=True)),
                ('remarks', models.CharField(default='', max_length=256, null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='office',
            fields=[
                ('create_date', models.CharField(default='', max_length=45, null=True)),
                ('create_time', models.IntegerField(default=0, null=True)),
                ('update_time', models.IntegerField(default=0, null=True)),
                ('update_date', models.CharField(default='', max_length=45, null=True)),
                ('is_delete', models.IntegerField(default=0)),
                ('create_by', models.CharField(default='', max_length=256, null=True)),
                ('update_by', models.CharField(default='', max_length=256, null=True)),
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('name', models.CharField(default='', max_length=256)),
                ('parent_id', models.CharField(default='', max_length=256, null=True)),
                ('parent_ids', models.CharField(default='', max_length=256, null=True)),
                ('parent_name', models.CharField(default='', max_length=256, null=True)),
                ('type', models.CharField(default='', max_length=64, null=True)),
                ('sort', models.IntegerField(default=0)),
                ('area_id', models.CharField(default='', max_length=256, null=True)),
                ('code', models.CharField(default='', max_length=256)),
                ('useable', models.IntegerField(default=1)),
                ('remarks', models.CharField(default='', max_length=256, null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='role',
            fields=[
                ('create_date', models.CharField(default='', max_length=45, null=True)),
                ('create_time', models.IntegerField(default=0, null=True)),
                ('update_time', models.IntegerField(default=0, null=True)),
                ('update_date', models.CharField(default='', max_length=45, null=True)),
                ('is_delete', models.IntegerField(default=0)),
                ('create_by', models.CharField(default='', max_length=256, null=True)),
                ('update_by', models.CharField(default='', max_length=256, null=True)),
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('name', models.CharField(default='', max_length=256)),
                ('role_type', models.CharField(default='', max_length=256)),
                ('useable', models.IntegerField(default=1)),
                ('remarks', models.CharField(default='', max_length=256, null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='role_menu',
            fields=[
                ('create_date', models.CharField(default='', max_length=45, null=True)),
                ('create_time', models.IntegerField(default=0, null=True)),
                ('update_time', models.IntegerField(default=0, null=True)),
                ('update_date', models.CharField(default='', max_length=45, null=True)),
                ('is_delete', models.IntegerField(default=0)),
                ('create_by', models.CharField(default='', max_length=256, null=True)),
                ('update_by', models.CharField(default='', max_length=256, null=True)),
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('type', models.IntegerField(default=0)),
                ('menu', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='system.menu')),
                ('role', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='system.role')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='user',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_date', models.CharField(default='', max_length=45, null=True)),
                ('create_time', models.IntegerField(default=0, null=True)),
                ('update_time', models.IntegerField(default=0, null=True)),
                ('update_date', models.CharField(default='', max_length=45, null=True)),
                ('is_delete', models.IntegerField(default=0)),
                ('create_by', models.CharField(default='', max_length=256, null=True)),
                ('update_by', models.CharField(default='', max_length=256, null=True)),
                ('loginname', models.CharField(default='', max_length=256)),
                ('passwd', models.CharField(default='', max_length=256)),
                ('realname', models.CharField(default='', max_length=256)),
                ('age', models.IntegerField(default=0, null=True)),
                ('email', models.CharField(max_length=128, null=True)),
                ('mobile', models.CharField(max_length=128, null=True)),
                ('phone', models.CharField(max_length=128, null=True)),
                ('icon', models.CharField(max_length=512, null=True)),
                ('office_id', models.CharField(max_length=512, null=True)),
                ('office_name', models.CharField(max_length=512, null=True)),
                ('isadmin', models.IntegerField(default=0)),
                ('addr', models.CharField(max_length=512, null=True)),
                ('remarks', models.CharField(max_length=512, null=True)),
                ('loginflag', models.IntegerField(default=0, null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='user_role',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_date', models.CharField(default='', max_length=45, null=True)),
                ('create_time', models.IntegerField(default=0, null=True)),
                ('update_time', models.IntegerField(default=0, null=True)),
                ('update_date', models.CharField(default='', max_length=45, null=True)),
                ('is_delete', models.IntegerField(default=0)),
                ('create_by', models.CharField(default='', max_length=256, null=True)),
                ('update_by', models.CharField(default='', max_length=256, null=True)),
                ('role', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='system.role')),
                ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='system.user')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]

# Generated by Django 2.1.7 on 2021-08-21 08:47

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='dict',
            fields=[
                ('create_date', models.CharField(default='', max_length=45, null=True)),
                ('create_time', models.IntegerField(default=0, null=True)),
                ('update_time', models.IntegerField(default=0, null=True)),
                ('update_date', models.CharField(default='', max_length=45, null=True)),
                ('is_delete', models.IntegerField(default=0)),
                ('create_by', models.CharField(default='', max_length=256, null=True)),
                ('update_by', models.CharField(default='', max_length=256, null=True)),
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('value', models.CharField(default='', max_length=256)),
                ('label', models.CharField(default='', max_length=256)),
                ('type', models.CharField(default='', max_length=256)),
                ('description', models.CharField(default='', max_length=256, null=True)),
                ('sort', models.IntegerField(default=0)),
                ('parent_id', models.CharField(default='', max_length=256, null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='log',
            fields=[
                ('create_date', models.CharField(default='', max_length=45, null=True)),
                ('create_time', models.IntegerField(default=0, null=True)),
                ('update_time', models.IntegerField(default=0, null=True)),
                ('update_date', models.CharField(default='', max_length=45, null=True)),
                ('is_delete', models.IntegerField(default=0)),
                ('create_by', models.CharField(default='', max_length=256, null=True)),
                ('update_by', models.CharField(default='', max_length=256, null=True)),
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('obj', models.CharField(default='', max_length=256)),
                ('data_id', models.CharField(default='', max_length=256, null=True)),
                ('user_id', models.CharField(default='', max_length=256)),
                ('user_name', models.CharField(default='', max_length=256)),
                ('action', models.CharField(default='', max_length=256)),
                ('json', models.CharField(default='', max_length=2048)),
                ('ip', models.CharField(default='', max_length=56)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='menu',
            fields=[
                ('create_date', models.CharField(default='', max_length=45, null=True)),
                ('create_time', models.IntegerField(default=0, null=True)),
                ('update_time', models.IntegerField(default=0, null=True)),
                ('update_date', models.CharField(default='', max_length=45, null=True)),
                ('is_delete', models.IntegerField(default=0)),
                ('create_by', models.CharField(default='', max_length=256, null=True)),
                ('update_by', models.CharField(default='', max_length=256, null=True)),
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('parent_id', models.IntegerField(default=0)),
                ('parent_name', models.CharField(default='', max_length=256, null=True)),
                ('parent_ids', models.CharField(default='', max_length=256, null=True)),
                ('name', models.CharField(default='', max_length=256)),
                ('sort', models.IntegerField(default=0)),
                ('href', models.CharField(default='', max_length=256, null=True)),
                ('base_href', models.CharField(default='', max_length=256, null=True)),
                ('is_show', models.IntegerField(default=0)),
                ('type', models.IntegerField(default=0)),
                ('has_children', models.CharField(default='false', max_length=256, null=True)),
                ('icon', models.CharField(default='', max_length=256, null=True)),
                ('remarks', models.CharField(default='', max_length=256, null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='office',
            fields=[
                ('create_date', models.CharField(default='', max_length=45, null=True)),
                ('create_time', models.IntegerField(default=0, null=True)),
                ('update_time', models.IntegerField(default=0, null=True)),
                ('update_date', models.CharField(default='', max_length=45, null=True)),
                ('is_delete', models.IntegerField(default=0)),
                ('create_by', models.CharField(default='', max_length=256, null=True)),
                ('update_by', models.CharField(default='', max_length=256, null=True)),
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('name', models.CharField(default='', max_length=256)),
                ('parent_id', models.CharField(default='', max_length=256, null=True)),
                ('parent_ids', models.CharField(default='', max_length=256, null=True)),
                ('parent_name', models.CharField(default='', max_length=256, null=True)),
                ('type', models.CharField(default='', max_length=64, null=True)),
                ('sort', models.IntegerField(default=0)),
                ('area_id', models.CharField(default='', max_length=256, null=True)),
                ('code', models.CharField(default='', max_length=256)),
                ('useable', models.IntegerField(default=1)),
                ('remarks', models.CharField(default='', max_length=256, null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='role',
            fields=[
                ('create_date', models.CharField(default='', max_length=45, null=True)),
                ('create_time', models.IntegerField(default=0, null=True)),
                ('update_time', models.IntegerField(default=0, null=True)),
                ('update_date', models.CharField(default='', max_length=45, null=True)),
                ('is_delete', models.IntegerField(default=0)),
                ('create_by', models.CharField(default='', max_length=256, null=True)),
                ('update_by', models.CharField(default='', max_length=256, null=True)),
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('name', models.CharField(default='', max_length=256)),
                ('role_type', models.CharField(default='', max_length=256)),
                ('useable', models.IntegerField(default=1)),
                ('remarks', models.CharField(default='', max_length=256, null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='role_menu',
            fields=[
                ('create_date', models.CharField(default='', max_length=45, null=True)),
                ('create_time', models.IntegerField(default=0, null=True)),
                ('update_time', models.IntegerField(default=0, null=True)),
                ('update_date', models.CharField(default='', max_length=45, null=True)),
                ('is_delete', models.IntegerField(default=0)),
                ('create_by', models.CharField(default='', max_length=256, null=True)),
                ('update_by', models.CharField(default='', max_length=256, null=True)),
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('type', models.IntegerField(default=0)),
                ('menu', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='system.menu')),
                ('role', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='system.role')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='user',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_date', models.CharField(default='', max_length=45, null=True)),
                ('create_time', models.IntegerField(default=0, null=True)),
                ('update_time', models.IntegerField(default=0, null=True)),
                ('update_date', models.CharField(default='', max_length=45, null=True)),
                ('is_delete', models.IntegerField(default=0)),
                ('create_by', models.CharField(default='', max_length=256, null=True)),
                ('update_by', models.CharField(default='', max_length=256, null=True)),
                ('loginname', models.CharField(default='', max_length=256)),
                ('passwd', models.CharField(default='', max_length=256)),
                ('realname', models.CharField(default='', max_length=256)),
                ('age', models.IntegerField(default=0, null=True)),
                ('email', models.CharField(max_length=128, null=True)),
                ('mobile', models.CharField(max_length=128, null=True)),
                ('phone', models.CharField(max_length=128, null=True)),
                ('icon', models.CharField(max_length=512, null=True)),
                ('office_id', models.CharField(max_length=512, null=True)),
                ('office_name', models.CharField(max_length=512, null=True)),
                ('isadmin', models.IntegerField(default=0)),
                ('addr', models.CharField(max_length=512, null=True)),
                ('remarks', models.CharField(max_length=512, null=True)),
                ('loginflag', models.IntegerField(default=0, null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='user_role',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_date', models.CharField(default='', max_length=45, null=True)),
                ('create_time', models.IntegerField(default=0, null=True)),
                ('update_time', models.IntegerField(default=0, null=True)),
                ('update_date', models.CharField(default='', max_length=45, null=True)),
                ('is_delete', models.IntegerField(default=0)),
                ('create_by', models.CharField(default='', max_length=256, null=True)),
                ('update_by', models.CharField(default='', max_length=256, null=True)),
                ('role', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='system.role')),
                ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='system.user')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]

# Generated by Django 2.1.7 on 2021-08-21 08:47