# Generated by Django 3.1.4 on 2021-02-24 09:00

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0163_remove_bankinfo_status'),
    ]

    operations = [
        migrations.CreateModel(
            name='BulletinBoard',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('subject', models.CharField(blank=True, max_length=200, null=True, verbose_name='主题')),
                ('content', models.CharField(blank=True, max_length=50000, null=True, verbose_name='内容')),
                ('category', models.SmallIntegerField(choices=[(0, '不限'), (1, '公司内部'), (2, '经销商')], default=0, verbose_name='类别')),
                ('salesdivisions', models.JSONField(default=list, verbose_name='战区')),
                ('is_active', models.BooleanField(default=True, verbose_name='是否激活')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('tm_edit', models.DateTimeField(auto_now=True, verbose_name='修改时间')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注说明')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='企业名称')),
                ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='创建人')),
            ],
            options={
                'verbose_name': '公告信息',
                'verbose_name_plural': '公告信息',
            },
        ),
        migrations.CreateModel(
            name='BulletinBoardAttach',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('attachment', models.FileField(upload_to=company.models.BulletinBoardAttach.upload_to, verbose_name='附件')),
                ('bulletinboard', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.bulletinboard', verbose_name='公告信息')),
            ],
            options={
                'verbose_name': '通知附件',
                'verbose_name_plural': '通知附件',
            },
        ),
    ]
