From fd15ae87366e9a829340237b8ac5d88d17fb82eb Mon Sep 17 00:00:00 2001 From: xieshen <1397910458@qq.com> Date: Wed, 30 Dec 2020 16:01:57 +0800 Subject: [PATCH] #add message --- dashboard/models.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/dashboard/models.py b/dashboard/models.py index ed2dd0b..c01d93c 100644 --- a/dashboard/models.py +++ b/dashboard/models.py @@ -783,4 +783,22 @@ class Comment(models.Model): def __str__(self): return self.user +#新媒体更新表(国办) +class Newmediaupdate(models.Model): + id = models.UUIDField('id', primary_key=True, default=uuid.uuid4) + organization_name = models.CharField('单位全称',max_length=256,null=True,blank=True) + organization_id_code = models.CharField('单位唯一标识码',max_length=256,null=True,blank=True) + identificationcode = models.CharField('新媒体标识码',max_length=256,null=True,blank=True) + newmedia_name = models.CharField('账号名称',max_length=256,null=True,blank=True) + newmedia_type = models.CharField('账号类型',max_length=256,null=True,blank=True) + function = models.CharField('功能', max_length=256, null=True, blank=True) + province = models.CharField('省', max_length=256, null=True, blank=True) + cities = models.CharField('市', max_length=256, null=True, blank=True) + district = models.CharField('县', max_length=256, null=True, blank=True) + articleurl = models.TextField('文章URL', null=True, blank=True) + biz = models.TextField('BIZ,账号id', null=True, blank=True) + created = models.DateTimeField('创建时间', auto_now_add=True) + updated = models.DateTimeField('更新时间', auto_now=True) + def __str__(self): + return self.newmedia_name \ No newline at end of file