public_sentiment/web/models/training_sensitive_word.py

26 lines
615 B
Python
Raw Normal View History

2024-09-18 13:41:28 +08:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.db import models
class TrainingSensitiveWord(models.Model):
"""
敏感词表
"""
# 主键
2024-09-19 16:58:49 +08:00
id = models.AutoField(primary_key=True, verbose_name="主键")
2024-09-18 13:41:28 +08:00
# 类型
2024-09-19 16:58:49 +08:00
type = models.CharField(max_length=255, null=True, blank=True, verbose_name="类型")
2024-09-18 13:41:28 +08:00
# 敏感词
2024-09-19 16:58:49 +08:00
word = models.CharField(max_length=255, null=True, blank=True, verbose_name="敏感词")
2024-09-18 13:41:28 +08:00
class Meta:
managed = True
db_table = 'training_sensitive_word'
verbose_name = '敏感词表'
verbose_name_plural = verbose_name