更新model

This commit is contained in:
chenyang
2022-07-23 13:35:22 +08:00
parent 08038cefd7
commit 8abee5f7c4
2 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ class CooperationMindStar(AbstractModel):
"""
收藏记录表
"""
user_id = models.BigIntegerField(verbose_name='收藏人', null=False)
operator_user_id = models.BigIntegerField(verbose_name='收藏人', null=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)
@@ -88,6 +88,6 @@ class CooperationMindStar(AbstractModel):
class Meta:
db_table = 'cooperation_mind_star'
indexes = [
models.Index(fields=['user_id'], ),
models.Index(fields=['operator_user_id'], ),
]
verbose_name = "协作分享表"