# Generated by Django 3.1.4 on 2022-04-06 15:59

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


class Migration(migrations.Migration):

    dependencies = [
        ('mes', '0029_auto_20210925_1650'),
    ]

    operations = [
        migrations.CreateModel(
            name='VendorPhotoCategory',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=100, null=True, verbose_name='图片类型')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注说明')),
            ],
            options={
                'verbose_name': '图片类型',
                'verbose_name_plural': '图片类型',
            },
        ),
        migrations.CreateModel(
            name='VendorPhotos',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('photo', models.CharField(blank=True, max_length=300, null=True, verbose_name='详细地址')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注说明')),
                ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mes.vendorphotocategory', verbose_name='图片类型')),
                ('vendor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mes.vendor', verbose_name='供应商')),
            ],
            options={
                'verbose_name': '供应商图片',
                'verbose_name_plural': '供应商图片',
            },
        ),
    ]
