# Generated by Django 5.2.8 on 2026-02-08 00:00

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('basic_info', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='DailySettlementConfig',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('updated_at', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('merchant', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='settlement_config', to='basic_info.merchant', verbose_name='所属商户')),
                ('settlement_modules', models.JSONField(default=list, verbose_name='统计模块')),
                ('notification_enabled', models.BooleanField(default=False, verbose_name='启用通知')),
                ('notification_channel', models.CharField(choices=[('wecom', '企业微信'), ('none', '不通知')], default='none', max_length=20, verbose_name='通知渠道')),
                ('description', models.TextField(blank=True, null=True, verbose_name='备注')),
            ],
            options={
                'verbose_name': '日结配置',
                'verbose_name_plural': '日结配置',
                'db_table': 'daily_settlement_config',
            },
        ),
    ]
