# Generated by Django 5.0.2 on 2024-08-24 05:51

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


class Migration(migrations.Migration):

    dependencies = [
        ('backend', '0029_rename_rola_id_knowledgebase_role_id'),
    ]

    operations = [
        migrations.CreateModel(
            name='file',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('create_time', models.DateTimeField(blank=True, default=backend.models.eight_hours_from_now, null=True, verbose_name='创建日期')),
                ('update_time', models.DateTimeField(default=backend.models.eight_hours_from_now, verbose_name='更新时间')),
                ('parent_id', models.CharField(max_length=255, verbose_name='父级id')),
                ('role_id', models.IntegerField(default=2, verbose_name='角色id')),
                ('created_by', models.CharField(blank=True, max_length=255, null=True, verbose_name='创建人id')),
                ('name', models.CharField(max_length=255, verbose_name='展示文件名称')),
                ('location', models.CharField(max_length=255, verbose_name='原文件名称')),
                ('size', models.IntegerField(default=0, verbose_name='角色id')),
                ('type', models.CharField(max_length=255, verbose_name='文件类型')),
                ('source_type', models.CharField(default='knowledgebase', max_length=255, verbose_name='属于分类')),
                ('status', models.SmallIntegerField(choices=[(5, '使用中'), (6, '已停用'), (4, '已删除')], default=5, verbose_name='状态')),
            ],
            options={
                'verbose_name': '知识库文件层级表',
                'verbose_name_plural': '知识库文件层级表',
                'db_table': 'kbm_file',
            },
        ),
    ]
