from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Access',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('user', models.CharField(max_length=30, null=True, blank=True)),
                ('user_agent', models.CharField(max_length=255, null=True, blank=True)),
                ('ip_address', models.CharField(max_length=255, null=True, verbose_name='IP Address', blank=True)),
                ('ip_forward', models.CharField(max_length=255, null=True, verbose_name='IP Forward Address', blank=True)),
                ('get_data', models.TextField(null=True, verbose_name='GET Data', blank=True)),
                ('post_data', models.TextField(null=True, verbose_name='POST Data', blank=True)),
                ('http_accept', models.CharField(max_length=255, null=True, verbose_name='HTTP Accept', blank=True)),
                ('path_info', models.CharField(max_length=255, null=True, verbose_name='Path', blank=True)),
                ('login_time', models.DateTimeField(auto_now_add=True)),
            ],
            options={
                'ordering': ['-login_time'],
                'verbose_name': 'Login Access',
                'verbose_name_plural': 'Login Accesses',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='AccessPage',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('user', models.CharField(max_length=30, null=True, blank=True)),
                ('user_agent', models.CharField(max_length=255, null=True, blank=True)),
                ('ip_address', models.CharField(max_length=255, null=True, verbose_name='IP Address', blank=True)),
                ('ip_forward', models.CharField(max_length=255, null=True, verbose_name='IP Forward Address', blank=True)),
                ('get_data', models.TextField(null=True, verbose_name='GET Data', blank=True)),
                ('post_data', models.TextField(null=True, verbose_name='POST Data', blank=True)),
                ('http_accept', models.CharField(max_length=255, null=True, verbose_name='HTTP Accept', blank=True)),
                ('path_info', models.CharField(max_length=255, null=True, verbose_name='Path', blank=True)),
                ('access_time', models.DateTimeField(auto_now_add=True)),
                ('action_type', models.IntegerField(blank=True, null=True, choices=[(1, 'VIEW_CHANGE'), (2, 'SUBMIT_CHANGE'), (3, 'VIEW_DELETE'), (4, 'SUBMIT_DELETE'), (5, 'VIEW_HISTORY'), (6, 'VIEW_LIST'), (7, 'VIEW_ADD'), (8, 'SUBMIT_ADD'), (9, 'DOWNLOAD_CSV')])),
            ],
            options={
                'ordering': ['-access_time'],
                'verbose_name': 'Page Access',
                'verbose_name_plural': 'Page Accesses',
            },
            bases=(models.Model,),
        ),
    ]
