# Generated by Django 5.0.2 on 2024-08-23 01:46

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


class Migration(migrations.Migration):

    dependencies = [
        ('backend', '0027_admin_verification_code'),
    ]

    operations = [
        migrations.CreateModel(
            name='knowledgebase',
            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='更新时间')),
                ('rola_id', models.IntegerField(default=2, verbose_name='角色id')),
                ('name', models.CharField(max_length=255, verbose_name='bucket名称')),
                ('description', models.CharField(blank=True, max_length=255, null=True, verbose_name='描述备注')),
                ('language', models.CharField(blank=True, max_length=255, null=True, verbose_name='语言')),
                ('embd_id', models.CharField(blank=True, max_length=255, null=True, verbose_name='嵌入模型')),
                ('permission', models.CharField(blank=True, max_length=255, null=True, verbose_name='权限:如果权限是“团队”，则所有团队成员都可以操作知识库。')),
                ('created_by', models.CharField(blank=True, max_length=255, null=True, verbose_name='创建人id')),
                ('doc_num', models.CharField(blank=True, max_length=255, null=True, verbose_name='')),
                ('token_num', models.CharField(blank=True, max_length=255, null=True, verbose_name='块Token数')),
                ('chunk_num', models.CharField(blank=True, max_length=255, null=True, verbose_name='')),
                ('similarity_threshold', models.CharField(blank=True, max_length=255, null=True, verbose_name='相似度阈值')),
                ('vector_similarity_weight', models.CharField(blank=True, max_length=255, null=True, verbose_name='关键字相似度权重')),
                ('parser_id', models.CharField(blank=True, max_length=255, null=True, verbose_name='')),
                ('parser_config', models.CharField(blank=True, max_length=255, null=True, verbose_name='')),
                ('status', models.SmallIntegerField(choices=[(5, '使用中'), (6, '已停用'), (4, '已删除')], default=5, verbose_name='状态')),
            ],
            options={
                'verbose_name': 'bucket信息表',
                'verbose_name_plural': 'bucket信息表',
                'db_table': 'kbm_knowledgebase',
            },
        ),
    ]
