# Generated by Django 3.1.4 on 2022-12-16 11:03

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0318_auto_20221214_1638'),
    ]

    operations = [
        migrations.CreateModel(
            name='PointsChangeLog',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ancestor_id', models.IntegerField(blank=True, null=True, verbose_name='所属族系')),
                ('before_modify', models.DecimalField(decimal_places=2, max_digits=12, verbose_name='修改前积分值')),
                ('after_modify', models.DecimalField(decimal_places=2, max_digits=12, verbose_name='修改后积分值')),
                ('dt', models.DateField(auto_now_add=True, db_index=True, verbose_name='日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注说明')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='pointschangelog_company', to='company.company', verbose_name='所属公司')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='pointschangelog_user', to=settings.AUTH_USER_MODEL, verbose_name='用户帐号')),
            ],
        ),
    ]
