jumpserver/apps/settings/migrations/0001_initial.py

50 lines
3.0 KiB
Python
Raw Normal View History

# 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
import uuid
2018-11-13 07:57:44 +00:00
class Migration(migrations.Migration):
initial = True
dependencies = [
]
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(
name='Setting',
2018-11-13 07:57:44 +00:00
fields=[
('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')),
('encrypted', models.BooleanField(default=False, verbose_name='Encrypted')),
('enabled', models.BooleanField(default=True, verbose_name='Enabled')),
2018-11-13 07:57:44 +00:00
('comment', models.TextField(verbose_name='Comment')),
],
options={
'verbose_name': 'System setting',
2019-03-04 07:51:17 +00:00
'db_table': 'settings_setting',
'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')],
},
2018-11-13 07:57:44 +00:00
),
]