six_001
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
from django.db import models
|
||||
from uuid6 import uuid8
|
||||
|
||||
from wechat_数据库.用户数据库.小程序登陆用户 import models_app_name
|
||||
from wechat_数据库.雪花算法.雪花算法工具 import generator
|
||||
|
||||
|
||||
class wecom企微用户标签(models.Model):
|
||||
"""城市信息表"""
|
||||
objects = models.Manager() #
|
||||
idKeywecom企微用户标签 = models.UUIDField(primary_key=True, default=uuid8)
|
||||
id_str = models.CharField(max_length=128, default=generator.generate_str)
|
||||
groupTag标签组ID = models.CharField(max_length=128, db_comment="标签组名")
|
||||
groupTag标签组名 = models.CharField(max_length=128, db_comment="标签组名")
|
||||
groupTag标签创建时间 = models.IntegerField()
|
||||
tag子标签ID = models.CharField(max_length=128, )
|
||||
tag子标签名称 = models.CharField(max_length=128, )
|
||||
tag子标签创建时间 = models.IntegerField()
|
||||
dateAndTime = models.DateTimeField(auto_now_add=True, db_comment="创建时间") # 数据创建时间
|
||||
updateTime = models.DateTimeField(auto_now=True, db_comment="更新时间") # 更新时间(需要用 save() )
|
||||
|
||||
class Meta:
|
||||
db_table = "wecom企微用户标签" # 给数据表自定义一个名称;默认的会是在 应用名+类名
|
||||
app_label = models_app_name
|
||||
ordering = ["-dateAndTime", "-updateTime"]
|
||||
@@ -0,0 +1,18 @@
|
||||
from django.db import models
|
||||
from uuid6 import uuid8
|
||||
|
||||
from wechat_数据库.用户数据库.小程序登陆用户 import models_app_name
|
||||
|
||||
|
||||
class wecom素材库(models.Model):
|
||||
"""城市信息表"""
|
||||
objects = models.Manager() #
|
||||
idKeywecom素材库 = models.UUIDField(primary_key=True, default=uuid8)
|
||||
address = models.JSONField()
|
||||
dateAndTime = models.DateTimeField(auto_now_add=True, db_comment="创建时间") # 数据创建时间
|
||||
updateTime = models.DateTimeField(auto_now=True, db_comment="更新时间") # 更新时间(需要用 save() )
|
||||
|
||||
class Meta:
|
||||
db_table = "wecom素材库" # 给数据表自定义一个名称;默认的会是在 应用名+类名
|
||||
app_label = models_app_name
|
||||
ordering = ["-idKeywecom素材库"]
|
||||
@@ -0,0 +1,36 @@
|
||||
# 企微用户的数据表
|
||||
from django.db import models
|
||||
|
||||
from wechat_数据库.用户数据库.小程序登陆用户 import models_app_name
|
||||
from wechat_数据库.雪花算法.雪花算法工具 import generator
|
||||
|
||||
defautl_img = (
|
||||
"https://oss.fujugongxiang.com/six/%E7%A6%8F%E8%81%9A%E8%B4%A1%E7%BF%94%E5%B0%8F%E7%A8%8B%E5%BA%8F/home%E9%A1%B5%E9%9D%A2%E4%B8%BB%E5"
|
||||
"%9B%BE/%E5%A4%B4%E5%83%8F.png")
|
||||
|
||||
|
||||
class wecom企微用户(models.Model):
|
||||
"""城市信息表"""
|
||||
objects = models.Manager() #
|
||||
idKeyWecom企微用户 = models.CharField(primary_key=True, default=generator.generate_str, )
|
||||
wecom企微ID = models.CharField(max_length=128, )
|
||||
wecom企微状态State = models.CharField(max_length=128, default="", null=True)
|
||||
wecom对好友打的标签 = models.JSONField(default=list, blank=True, null=True, ) # 'tag_id': [],
|
||||
wecom对好友的备注名称 = models.CharField(max_length=128, ) # 'remark': '胡蝶',
|
||||
wecom对好友的添加时间 = models.BigIntegerField(blank=True, null=True, ) # 时间戳类型
|
||||
wecom对好友的备注信息 = models.CharField(max_length=128, default="")
|
||||
wecom企微对好友添加的手机号码 = models.JSONField(default=list, blank=True, null=True, ) # 'remark_mobiles': [],
|
||||
wecom企微好友添加方式 = models.CharField(max_length=128, ) # 'oper_userid': 'wmj4zANAAAGqQ7gHSPJb3yUw_PW6bXCg'
|
||||
wecom好友UNIONID = models.CharField(max_length=128, ) # 'unionid': 'oy4Jw6Lyfyj1VvgZFodzq9oqJzHE'
|
||||
wecom好友昵称 = models.CharField(max_length=128, ) # 'name': '胡蝶',
|
||||
wecom好友头像 = models.TextField(default="https://hudie.xiao.band/default_avacitve.jpeg") # 'avatar': 'http://wx.qlogo.cn/mmhead/hIz3ylFIYSibsiaymBicSrKXruslWCA0wcu9TNtnXbAeT8WpsthMVJfpj69h9bPHibC1NbFLzgUTnM0/0',
|
||||
wecom好友性别 = models.CharField(max_length=128, )
|
||||
wecom好友的ID = models.CharField(max_length=128, ) # 'external_userid': 'wmj4zANAAAGqQ7gHSPJb3yUw_PW6bXCg',
|
||||
wecom好友关系状态 = models.CharField(max_length=128, blank=True, null=True, )
|
||||
dateAndTime = models.DateTimeField(auto_now_add=True, db_comment="创建时间") # 数据创建时间
|
||||
updateTime = models.DateTimeField(auto_now=True, db_comment="更新时间") # 更新时间(需要用 save() )
|
||||
|
||||
class Meta:
|
||||
db_table = "wecom企微用户" # 给数据表自定义一个名称;默认的会是在 应用名+类名
|
||||
app_label = models_app_name
|
||||
ordering = ["-dateAndTime", "-updateTime"]
|
||||
@@ -0,0 +1,31 @@
|
||||
from django.db import models
|
||||
|
||||
from wechat_数据库.用户数据库.小程序登陆用户 import models_app_name
|
||||
from wechat_数据库.雪花算法.雪花算法工具 import generator
|
||||
|
||||
|
||||
class wecom企微群(models.Model):
|
||||
"""城市信息表"""
|
||||
objects = models.Manager() #
|
||||
idKeyWecom企微群 = models.CharField(primary_key=True, default=generator.generate_str, )
|
||||
chat_id群 = models.CharField(max_length=128, )
|
||||
chat群名称 = models.CharField(max_length=128, blank=True, null=True, )
|
||||
chat群主ID = models.CharField(max_length=128, blank=True, null=True, )
|
||||
chat群成员外部好友external_userid = models.CharField(max_length=128, blank=True, null=True, )
|
||||
chat群成员外部好友unionid = models.CharField(max_length=128, blank=True, null=True, )
|
||||
chat群成员外部好友名称 = models.CharField(max_length=128, blank=True, null=True, ) # 如果是微信用户,则返回其在微信中设置的名字
|
||||
chat群成员外部好友群名称 = models.CharField(max_length=128, blank=True, null=True, )
|
||||
chat群成员外部好友类型 = models.IntegerField(blank=True, null=True, )
|
||||
# 1 - 由群成员邀请入群(直接邀请入群) 2 - 由群成员邀请入群(通过邀请链接入群) 3 - 通过扫描群二维码入群
|
||||
chat群成员外部好友加入方式 = models.IntegerField(blank=True, null=True, )
|
||||
chat群成员外部好友邀请者 = models.CharField(max_length=128, blank=True, null=True, ) # 邀请者目前仅当是由本企业内部成员邀请入群时会返回该值
|
||||
chat群管理员列表 = models.JSONField(default=list)
|
||||
chat群创建时间 = models.IntegerField(blank=True, null=True, ) # 时间戳
|
||||
chat群成员加入时间 = models.IntegerField(blank=True, null=True, )
|
||||
dateAndTime = models.DateTimeField(auto_now_add=True, db_comment="创建时间") # 数据创建时间
|
||||
updateTime = models.DateTimeField(auto_now=True, db_comment="更新时间") # 更新时间(需要用 save() )
|
||||
|
||||
class Meta:
|
||||
db_table = "wecom企微群" # 给数据表自定义一个名称;默认的会是在 应用名+类名
|
||||
app_label = models_app_name
|
||||
ordering = ["-dateAndTime", "-updateTime"]
|
||||
@@ -0,0 +1,29 @@
|
||||
from django.db import models
|
||||
from uuid6 import uuid8
|
||||
|
||||
from wechat_数据库.用户数据库.小程序登陆用户 import models_app_name, weiuser
|
||||
from wechat_数据库.雪花算法.雪花算法工具 import generator
|
||||
|
||||
|
||||
class wecom推广码(models.Model):
|
||||
"""城市信息表"""
|
||||
objects = models.Manager() #
|
||||
idKey = models.UUIDField(primary_key=True, default=uuid8)
|
||||
id_str = models.CharField(max_length=128, default=generator.generate_str)
|
||||
codeConfigId = models.CharField(max_length=128, )
|
||||
codeType = models.IntegerField(blank=True, null=True, ) # 联系方式类型,1-单人, 2-多人
|
||||
codeQrCode = models.CharField(max_length=256, blank=True, null=True, ) # 二维码图片链接
|
||||
codeRemark = models.CharField(max_length=128, blank=True, null=True, ) # 备注的信息
|
||||
codeState = models.CharField(max_length=128, blank=True, null=True, ) # 唯一的值(重要)
|
||||
codeUser = models.JSONField(blank=True, null=True, ) # 使用该联系方式的用户userID列表,在type为1时为必填,且只能有一个
|
||||
code省 = models.CharField(max_length=128, blank=True, null=True, )
|
||||
code市 = models.CharField(max_length=128, blank=True, null=True, )
|
||||
code区 = models.CharField(max_length=128, blank=True, null=True, )
|
||||
wai外键weiuser表 = models.ForeignKey(to=weiuser, on_delete=models.CASCADE, )
|
||||
dateAndTime = models.DateTimeField(auto_now_add=True, db_comment="创建时间") # 数据创建时间
|
||||
updateTime = models.DateTimeField(auto_now=True, db_comment="更新时间") # 更新时间(需要用 save() )
|
||||
|
||||
class Meta:
|
||||
db_table = "wecom推广码" # 给数据表自定义一个名称;默认的会是在 应用名+类名
|
||||
app_label = models_app_name
|
||||
ordering = ["-dateAndTime", "-updateTime"]
|
||||
Reference in New Issue
Block a user