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

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0165_auto_20210224_0937'),
    ]

    operations = [
        migrations.CreateModel(
            name='BBSfeedback',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('user_id', models.IntegerField(verbose_name='帐号ID')),
                ('comment', models.TextField(max_length=10000)),
                ('is_active', models.BooleanField(default=True, verbose_name='是否激活')),
                ('dt', models.DateField(auto_now_add=True, db_index=True, verbose_name='创建日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('bulletinboard', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.bulletinboard', verbose_name='公告信息')),
            ],
            options={
                'verbose_name': '公告信息意见反馈',
                'verbose_name_plural': '公告信息意见反馈',
            },
        ),
        migrations.CreateModel(
            name='BBSfeedbackAttach',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('attachment', models.FileField(upload_to=company.models.BBSfeedbackAttach.upload_to, verbose_name='附件')),
                ('bsfeedback', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.bbsfeedback', verbose_name='公告信息意见反馈')),
            ],
            options={
                'verbose_name': '公告意见反馈附件',
                'verbose_name_plural': '公告意见反馈附件',
            },
        ),
        migrations.CreateModel(
            name='BBSreader',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('user_id', models.IntegerField(verbose_name='帐号ID')),
                ('dt', models.DateField(auto_now_add=True, db_index=True, verbose_name='创建日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('bulletinboard', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.bulletinboard', verbose_name='公告信息')),
            ],
            options={
                'verbose_name': '公告信息读取记录',
                'verbose_name_plural': '公告信息读取记录',
                'unique_together': {('bulletinboard', 'user_id')},
            },
        ),
    ]
