# Generated by Django 3.1.4 on 2022-08-10 16:47

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0300_user_roles'),
        ('wx', '0010_pay_send_hb_method'),
    ]

    operations = [
        migrations.CreateModel(
            name='PayLog',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('user_id', models.IntegerField(blank=True, null=True, verbose_name='用户ID')),
                ('consumer_id', models.IntegerField(blank=True, null=True, verbose_name='消费者ID')),
                ('pay_code', models.CharField(blank=True, max_length=30, null=True, verbose_name='流水单号')),
                ('amount', models.DecimalField(decimal_places=2, max_digits=8, verbose_name='金额')),
                ('reason', models.CharField(blank=True, max_length=500, null=True, verbose_name='原因')),
                ('remark', models.CharField(blank=True, max_length=30, null=True, verbose_name='备注')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='提交时间')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='公司')),
            ],
            options={
                'verbose_name': '支付日志',
                'verbose_name_plural': '支付日志',
            },
        ),
    ]
