提取公共CommonStatus

This commit is contained in:
xie7654
2025-07-01 13:02:02 +08:00
parent 3bc50e79e8
commit 57429ba359
7 changed files with 124 additions and 71 deletions

View File

@@ -5,6 +5,10 @@
"""
from django.db import models
class CommonStatus(models.IntegerChoices):
DISABLED = 0, '禁用'
ENABLED = 1, '启用'
class CoreModel(models.Model):
remark = models.CharField(max_length=256, db_comment="备注", null=True, blank=True, help_text="备注")
creator = models.CharField(max_length=64, null=True, blank=True, help_text="创建人", db_comment="创建人")