# Generated by Django 2.1.7 on 2020-08-15 13:49

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0060_auto_20200721_1455'),
    ]

    operations = [
        migrations.CreateModel(
            name='ChangeLog',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ancestor_id', models.IntegerField(db_index=True, verbose_name='族系')),
                ('obj_name', models.CharField(db_index=True, max_length=20, verbose_name='对象名称')),
                ('obj_id', models.IntegerField(db_index=True, verbose_name='对象id')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('dt', models.DateField(auto_now_add=True, db_index=True, verbose_name='日期')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注说明')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='changelog_company', to='company.Company', verbose_name='公司')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='changelog_user', to=settings.AUTH_USER_MODEL, verbose_name='操作人')),
            ],
            options={
                'verbose_name': '数据修改日志',
                'verbose_name_plural': '数据修改日志',
            },
        ),
    ]
