# Generated by Django 5.2.7 on 2025-11-28 06:00

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


class Migration(migrations.Migration):

    dependencies = [
        ('basic_info', '0013_alter_customer_options'),
    ]

    operations = [
        migrations.CreateModel(
            name='MerchantSetting',
            fields=[
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('updated_at', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('id', models.BigAutoField(primary_key=True, serialize=False)),
                ('key', models.CharField(max_length=100, verbose_name='设置项')),
                ('val', models.CharField(max_length=100, verbose_name='设置值')),
                ('description', models.TextField(blank=True, null=True, verbose_name='备注')),
                ('merchant', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='settings', to='basic_info.merchant', verbose_name='所属商户')),
            ],
            options={
                'verbose_name': '商户设置',
                'verbose_name_plural': '商户设置',
            },
        ),
    ]
