# Generated by Django 3.1.4 on 2023-01-14 16:05

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'),
        ('sales', '0314_awardcatlog_award_name'),
    ]

    operations = [
        migrations.CreateModel(
            name='Wallet_amount',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('amount', models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True, verbose_name='金额/点值')),
                ('remark', models.CharField(blank=True, max_length=30, null=True, verbose_name='备注')),
                ('dt', models.DateField(auto_now_add=True, db_index=True, verbose_name='日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('ancestor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='wallet_amount_ancestor', to='company.company', verbose_name='所属企业')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='钱包公司')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='Wallet_amount_user', to=settings.AUTH_USER_MODEL, verbose_name='操作人')),
            ],
            options={
                'verbose_name': '钱包金额',
                'verbose_name_plural': '钱包金额',
            },
        ),
    ]
