This commit is contained in:
doudou201703
2026-08-10 19:33:59 +08:00
parent 3ff0faebb9
commit 945b120733
28 changed files with 330 additions and 786 deletions
@@ -0,0 +1,31 @@
from django.db import models
from uuid6 import uuid8
from wechat_数据库.用户数据库.小程序登陆用户 import models_app_name
class stock券数据表(models.Model):
"""城市信息表"""
objects = models.Manager() #
stock_id = models.UUIDField(primary_key=True, default=uuid8)
stock_商家侧订单号 = models.CharField(max_length=128, )
stock_use_券状态 = models.CharField(max_length=128, null=True, blank=True, )
stock_use_发券时间 = models.DateTimeField(null=True, blank=True, )
stock_use_领券时间 = models.DateTimeField(null=True, blank=True, )
mini_openid = models.CharField(max_length=128, null=True, blank=True, )
mini_unionid = models.CharField(max_length=128, null=True, blank=True, )
stock_归属商户号 = models.CharField(max_length=128)
stock_批次号 = models.CharField(max_length=128, null=True, blank=True, )
stock_批次名称 = models.CharField(max_length=128, null=True, blank=True, )
stock_券金额 = models.IntegerField(null=True, blank=True, )
stock_券门槛 = models.CharField(max_length=128, null=True, blank=True, )
stock_券有效期开始时间 = models.DateField(null=True, blank=True, )
stock_未领取券的数据 = models.JSONField(default=dict, null=True, blank=True, )
stock_券有效期结束时间 = models.DateField(null=True, blank=True, )
dateAndTime = models.DateTimeField(auto_now_add=True, db_comment="创建时间") # 数据创建时间
updateTime = models.DateTimeField(auto_now=True, db_comment="更新时间") # 更新时间(需要用 save() )
class Meta:
db_table = "stock券数据表" # 给数据表自定义一个名称;默认的会是在 应用名+类名
app_label = models_app_name
@@ -18,7 +18,7 @@ class share积分类型choosies(models.TextChoices):
class share积分表(models.Model):
"""城市信息表"""
objects = models.Manager() #
id_主键 = models.UUIDField(primary_key=True, default=uuid8)
id_str = models.CharField(max_length=128, default=ULID)
share分享者unionid = models.CharField(max_length=128, )
@@ -37,12 +37,12 @@ class share积分表(models.Model):
share支付微信侧返回的提现状态 = models.CharField(max_length=128, null=True, blank=True, )
share支付提现微信公司生成的转账数据 = models.JSONField(null=True, blank=True, default=dict)
share积分是否可以提现的状态 = models.CharField(null=True, blank=True, )
share日期 = models.DateField(blank=True, null=True)
share日期时间 = models.DateTimeField(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 = "share积分表" # 给数据表自定义一个名称;默认的会是在 应用名+类名
app_label = models_app_name