# Generated by Django 3.1.4 on 2023-01-12 14:06

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('company', '0320_pointslogdetails_product_id'),
        ('system', '0002_auto_20230110_0815'),
    ]

    operations = [
        migrations.AddField(
            model_name='log',
            name='ancestor',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='log_ancestor', to='company.company', verbose_name='所属企业'),
        ),
        migrations.AlterField(
            model_name='log',
            name='company',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='log_company', to='company.company', verbose_name='所属公司'),
        ),
        migrations.AlterField(
            model_name='log',
            name='user',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='log_user', to=settings.AUTH_USER_MODEL, verbose_name='操作人'),
        ),
    ]
