2024-05-11 03:22:01 +00:00
|
|
|
# Generated by Django 4.1.13 on 2024-05-09 03:16
|
2018-11-13 07:57:44 +00:00
|
|
|
|
|
|
|
from django.db import migrations, models
|
2024-05-11 03:22:01 +00:00
|
|
|
import uuid
|
2018-11-13 07:57:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
]
|
|
|
|
|
2024-05-11 03:22:01 +00:00
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='ChatPrompt',
|
|
|
|
fields=[
|
|
|
|
('created_by', models.CharField(blank=True, max_length=128, null=True, verbose_name='Created by')),
|
|
|
|
('updated_by', models.CharField(blank=True, max_length=128, null=True, verbose_name='Updated by')),
|
|
|
|
('date_created', models.DateTimeField(auto_now_add=True, null=True, verbose_name='Date created')),
|
|
|
|
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Date updated')),
|
|
|
|
('comment', models.TextField(blank=True, default='', verbose_name='Comment')),
|
|
|
|
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
|
|
|
|
('name', models.CharField(max_length=128, unique=True, verbose_name='Name')),
|
|
|
|
('content', models.TextField(verbose_name='Content')),
|
|
|
|
('builtin', models.BooleanField(default=False, verbose_name='Builtin')),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
'verbose_name': 'Chat prompt',
|
|
|
|
},
|
|
|
|
),
|
2018-11-13 07:57:44 +00:00
|
|
|
migrations.CreateModel(
|
2019-02-26 04:38:20 +00:00
|
|
|
name='Setting',
|
2018-11-13 07:57:44 +00:00
|
|
|
fields=[
|
2024-05-11 03:22:01 +00:00
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('name', models.CharField(max_length=128, unique=True, verbose_name='Name')),
|
|
|
|
('value', models.TextField(blank=True, null=True, verbose_name='Value')),
|
|
|
|
('category', models.CharField(default='default', max_length=128, verbose_name='Category')),
|
2022-11-04 06:22:38 +00:00
|
|
|
('encrypted', models.BooleanField(default=False, verbose_name='Encrypted')),
|
2024-05-11 03:22:01 +00:00
|
|
|
('enabled', models.BooleanField(default=True, verbose_name='Enabled')),
|
2018-11-13 07:57:44 +00:00
|
|
|
('comment', models.TextField(verbose_name='Comment')),
|
|
|
|
],
|
2019-02-26 04:38:20 +00:00
|
|
|
options={
|
2024-05-11 03:22:01 +00:00
|
|
|
'verbose_name': 'System setting',
|
2019-03-04 07:51:17 +00:00
|
|
|
'db_table': 'settings_setting',
|
2024-05-11 03:22:01 +00:00
|
|
|
'permissions': [('change_email', 'Can change email setting'), ('change_auth', 'Can change auth setting'), ('change_ops', 'Can change auth ops'), ('change_ticket', 'Can change auth ticket'), ('change_virtualapp', 'Can change virtual app setting'), ('change_announcement', 'Can change auth announcement'), ('change_vault', 'Can change vault setting'), ('change_chatai', 'Can change chat ai setting'), ('change_systemmsgsubscription', 'Can change system msg sub setting'), ('change_sms', 'Can change sms setting'), ('change_security', 'Can change security setting'), ('change_clean', 'Can change clean setting'), ('change_interface', 'Can change interface setting'), ('change_license', 'Can change license setting'), ('change_terminal', 'Can change terminal setting'), ('change_other', 'Can change other setting')],
|
2019-02-26 04:38:20 +00:00
|
|
|
},
|
2018-11-13 07:57:44 +00:00
|
|
|
),
|
|
|
|
]
|