This commit is contained in:
chenyang
2022-07-10 14:31:13 +08:00
parent da6f349faa
commit 6c2ddd2955
3 changed files with 16 additions and 9 deletions
+3 -3
View File
@@ -37,7 +37,7 @@ class CooperationMindLog(AbstractModel):
"""
操作日志表
"""
coop_mind_id = models.BigIntegerField(verbose_name='脑图ID', null=False, blank=False)
coop_mind = models.ForeignKey(to="CooperationMind", to_field="id", verbose_name="脑图ID", on_delete=models.CASCADE)
log_uuid = models.CharField(verbose_name='操作UUID', max_length=64, null=False, blank=False)
log_content = models.CharField(verbose_name='操作内容', max_length=1024, null=False, blank=False)
operator_user_id = models.BigIntegerField(verbose_name='操作人', null=True)
@@ -59,7 +59,7 @@ class CooperationMindShare(AbstractModel):
"""
分享记录表
"""
coop_mind_id = models.BigIntegerField(verbose_name='脑图ID', null=False, blank=False)
coop_mind = models.ForeignKey(to="CooperationMind", to_field="id", verbose_name="脑图ID", on_delete=models.CASCADE)
coop_mind_name = models.CharField(verbose_name='脑图名称', max_length=128, null=False, blank=False)
share_uuid = models.CharField(verbose_name='分享uuid', max_length=128, null=False, blank=False)
share_uuid_hash = models.BigIntegerField(verbose_name='分享uuid_hash', null=False, blank=False)
@@ -80,7 +80,7 @@ class CooperationMindStar(AbstractModel):
收藏记录表
"""
user_id = models.BigIntegerField(verbose_name='收藏人', null=False)
coop_mind_id = models.BigIntegerField(verbose_name='脑图ID', null=False, blank=False)
coop_mind = models.ForeignKey(to="CooperationMind", to_field="id", verbose_name="脑图ID", on_delete=models.CASCADE)
coop_mind_name = models.CharField(verbose_name='脑图名称', max_length=128, null=False, blank=False)
class Meta: