This commit is contained in:
chenyang
2022-07-03 13:24:03 +08:00
parent 5720ad7434
commit 805612792b
6 changed files with 29 additions and 17 deletions
+5 -4
View File
@@ -16,17 +16,18 @@ class CooperationMind(AbstractModel):
"""
coop_mind_name = models.CharField(verbose_name='脑图名称', max_length=64, null=False, blank=False)
creator = models.BigIntegerField(verbose_name='创建人ID', null=False, blank=False)
client_id = models.CharField(verbose_name='客户端ID', max_length=64, null=False, blank=False)
creator_user_id = models.BigIntegerField(verbose_name='创建人ID', null=False, blank=False, default=0)
client_uuid = models.CharField(verbose_name='客户端ID', max_length=64, null=False, blank=False)
snapshot_data = models.TextField(verbose_name='脑图数据', null=True, )
mind_log_id = models.BigIntegerField(verbose_name='data对应的操作日志(cooperation_mind_log)ID', null=True, )
data_format = models.CharField(verbose_name='数据格式化类型', max_length=32, null=False, blank=False)
deleted = models.BooleanField(verbose_name='是否标记为软删除', default=False)
class Meta:
db_table = 'cooperation_mind'
ordering = ['-id']
indexes = [
models.Index(fields=['creator'])
models.Index(fields=['creator_user_id'])
]
verbose_name = "脑图表"
@@ -41,7 +42,7 @@ class CooperationMindLog(AbstractModel):
log_content = models.CharField(verbose_name='操作内容', max_length=1024, null=False, blank=False)
operator = models.BigIntegerField(verbose_name='操作人', null=True)
operator_ip = models.CharField(verbose_name='操作人IP', null=False, max_length=32)
client_id = models.CharField(verbose_name='客户端ID', max_length=64, null=False, blank=False)
client_uuid = models.CharField(verbose_name='客户端ID', max_length=64, null=False, blank=False)
class Meta:
db_table = 'cooperation_mind_log'