109 lines
4.3 KiB
Python
109 lines
4.3 KiB
Python
# Generated by Django 5.2.14 on 2026-06-03 18:11
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = []
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="FeishuNotifyConfig",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.BigAutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("config_name", models.CharField(max_length=100)),
|
|
(
|
|
"notify_reason",
|
|
models.CharField(
|
|
choices=[
|
|
("task_completed", "task_completed"),
|
|
("task_failed", "task_failed"),
|
|
],
|
|
db_index=True,
|
|
max_length=32,
|
|
),
|
|
),
|
|
("channel", models.CharField(blank=True, max_length=100)),
|
|
("message_template", models.CharField(blank=True, max_length=255)),
|
|
("status", models.CharField(blank=True, max_length=32)),
|
|
("is_active", models.BooleanField(db_index=True, default=True)),
|
|
("created_at", models.DateTimeField(auto_now_add=True)),
|
|
("updated_at", models.DateTimeField(auto_now=True)),
|
|
],
|
|
options={
|
|
"ordering": ["notify_reason", "id"],
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="OwnerMapping",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.BigAutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("owner_role", models.CharField(db_index=True, max_length=100)),
|
|
("owner_name", models.CharField(max_length=100)),
|
|
("department", models.CharField(blank=True, max_length=100)),
|
|
("chapter_scope", models.CharField(blank=True, max_length=100)),
|
|
("risk_scope", models.CharField(blank=True, max_length=255)),
|
|
("feishu_user_id", models.CharField(blank=True, max_length=100)),
|
|
("feishu_open_id", models.CharField(blank=True, max_length=100)),
|
|
("feishu_name", models.CharField(blank=True, max_length=100)),
|
|
("notify_enabled", models.BooleanField(default=True)),
|
|
("is_active", models.BooleanField(db_index=True, default=True)),
|
|
("created_at", models.DateTimeField(auto_now_add=True)),
|
|
("updated_at", models.DateTimeField(auto_now=True)),
|
|
],
|
|
options={
|
|
"ordering": ["owner_role", "id"],
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="WordTemplateMapping",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.BigAutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("template_name", models.CharField(max_length=100)),
|
|
(
|
|
"output_type",
|
|
models.CharField(
|
|
default="registration_word_export_report", max_length=100
|
|
),
|
|
),
|
|
("version", models.CharField(blank=True, max_length=50)),
|
|
("placeholder_count", models.PositiveIntegerField(default=0)),
|
|
("status", models.CharField(blank=True, max_length=32)),
|
|
("field_mapping_summary", models.CharField(blank=True, max_length=255)),
|
|
("is_active", models.BooleanField(db_index=True, default=True)),
|
|
("created_at", models.DateTimeField(auto_now_add=True)),
|
|
("updated_at", models.DateTimeField(auto_now=True)),
|
|
],
|
|
options={
|
|
"ordering": ["template_name", "id"],
|
|
},
|
|
),
|
|
]
|