From f33f1036b63f7d044be6b11e6667ecd599907d72 Mon Sep 17 00:00:00 2001 From: chenyang Date: Wed, 6 Jul 2022 08:52:52 +0800 Subject: [PATCH] update --- server/models.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/server/models.py b/server/models.py index ae29718..ab88da1 100644 --- a/server/models.py +++ b/server/models.py @@ -60,9 +60,17 @@ class CooperationMindShare(AbstractModel): 分享记录表 """ coop_mind_id = models.BigIntegerField(verbose_name='脑图ID', null=False, blank=False) + 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) + share_end_time = models.DateTimeField(verbose_name='分享有效期', null=True) class Meta: db_table = 'cooperation_mind_share' + indexes = [ + models.Index(fields=['share_uuid_hash'], ), + ] + verbose_name = "协作分享表" class CooperationMindStar(AbstractModel): @@ -75,3 +83,7 @@ class CooperationMindStar(AbstractModel): class Meta: db_table = 'cooperation_mind_star' + indexes = [ + models.Index(fields=['user_id'], ), + ] + verbose_name = "协作分享表"