|
@@ -392,12 +392,13 @@ class User_Brand(models.Model):
|
|
# 存储通表
|
|
# 存储通表
|
|
class VodBucketModel(models.Model):
|
|
class VodBucketModel(models.Model):
|
|
id = models.AutoField(primary_key=True, verbose_name='主键')
|
|
id = models.AutoField(primary_key=True, verbose_name='主键')
|
|
- bucket = models.CharField(max_length=30, verbose_name='设备UID')
|
|
|
|
|
|
+ bucket = models.CharField(max_length=30, verbose_name='存储桶名称')
|
|
storeDay = models.IntegerField(default=0, verbose_name='存储生命周期(天)')
|
|
storeDay = models.IntegerField(default=0, verbose_name='存储生命周期(天)')
|
|
content = models.TextField(verbose_name='描述', default='')
|
|
content = models.TextField(verbose_name='描述', default='')
|
|
endpoint = models.CharField(max_length=125, default='', verbose_name='存储节点')
|
|
endpoint = models.CharField(max_length=125, default='', verbose_name='存储节点')
|
|
area = models.CharField(max_length=16, default='', verbose_name='区域')
|
|
area = models.CharField(max_length=16, default='', verbose_name='区域')
|
|
region = models.CharField(max_length=16, default='', verbose_name='regionID')
|
|
region = models.CharField(max_length=16, default='', verbose_name='regionID')
|
|
|
|
+ is_free = models.SmallIntegerField(default=0, verbose_name='是否为免费存储桶[0:否,1:是]')
|
|
|
|
|
|
addTime = models.IntegerField(verbose_name='添加时间', default=0)
|
|
addTime = models.IntegerField(verbose_name='添加时间', default=0)
|
|
updTime = models.IntegerField(verbose_name='更新时间', default=0)
|
|
updTime = models.IntegerField(verbose_name='更新时间', default=0)
|
|
@@ -437,6 +438,12 @@ class Store_Meal(models.Model):
|
|
# lang = models.CharField(default='', max_length=20, verbose_name='语言/国家')
|
|
# lang = models.CharField(default='', max_length=20, verbose_name='语言/国家')
|
|
lang = models.ManyToManyField(to='Lang', verbose_name='套餐语言', db_table='store_meal_lang')
|
|
lang = models.ManyToManyField(to='Lang', verbose_name='套餐语言', db_table='store_meal_lang')
|
|
|
|
|
|
|
|
+ # 备用字段
|
|
|
|
+ spare_1 = models.CharField(default='', blank=True, max_length=64, verbose_name=u'备用字段1')
|
|
|
|
+ spare_2 = models.CharField(default='', blank=True, max_length=64, verbose_name=u'备用字段2')
|
|
|
|
+ spare_3 = models.CharField(default='', blank=True, max_length=64, db_index=True, verbose_name=u'备用字段3')
|
|
|
|
+ spare_4 = models.CharField(default='', blank=True, max_length=64, db_index=True, verbose_name=u'备用字段4')
|
|
|
|
+
|
|
def __str__(self):
|
|
def __str__(self):
|
|
return self.id
|
|
return self.id
|
|
|
|
|
|
@@ -464,8 +471,8 @@ class Pay_Type(models.Model):
|
|
# 套餐语言表
|
|
# 套餐语言表
|
|
class Lang(models.Model):
|
|
class Lang(models.Model):
|
|
id = models.AutoField(primary_key=True, verbose_name='自增ID')
|
|
id = models.AutoField(primary_key=True, verbose_name='自增ID')
|
|
- lang = models.CharField(default='', max_length=20, verbose_name='语言/国家')
|
|
|
|
- title = models.CharField(blank=True, max_length=32, verbose_name='标题')
|
|
|
|
|
|
+ lang = models.CharField(default='', max_length=20, db_index=True, verbose_name='语言/国家')
|
|
|
|
+ title = models.CharField(blank=True, max_length=320, verbose_name='标题')
|
|
content = models.TextField(blank=True, null=True, verbose_name='描述')
|
|
content = models.TextField(blank=True, null=True, verbose_name='描述')
|
|
discount_content = models.CharField(blank=True, max_length=320, verbose_name=u'优惠信息描述')
|
|
discount_content = models.CharField(blank=True, max_length=320, verbose_name=u'优惠信息描述')
|
|
|
|
|
|
@@ -580,6 +587,11 @@ class Order_Model(models.Model):
|
|
pay_url = models.CharField(max_length=2000, default='', verbose_name='支付url')
|
|
pay_url = models.CharField(max_length=2000, default='', verbose_name='支付url')
|
|
paypal = models.CharField(max_length=500, null=True, blank=True, verbose_name='支付批准url')
|
|
paypal = models.CharField(max_length=500, null=True, blank=True, verbose_name='支付批准url')
|
|
|
|
|
|
|
|
+ # 备用字段
|
|
|
|
+ spare_1 = models.CharField(default='', blank=True, max_length=64, verbose_name=u'备用字段1')
|
|
|
|
+ spare_2 = models.CharField(default='', blank=True, max_length=64, verbose_name=u'备用字段2')
|
|
|
|
+ spare_3 = models.CharField(default='', blank=True, max_length=64, db_index=True, verbose_name=u'备用字段3')
|
|
|
|
+ spare_4 = models.CharField(default='', blank=True, max_length=64, db_index=True, verbose_name=u'备用字段4')
|
|
|
|
|
|
def __str__(self):
|
|
def __str__(self):
|
|
return self.orderID
|
|
return self.orderID
|
|
@@ -1171,6 +1183,12 @@ class CDKcontextModel(models.Model):
|
|
# order = models.ForeignKey(Order_Model, blank=True, max_length=20, to_field='orderID', on_delete=models.CASCADE, verbose_name='订单id', unique=True)
|
|
# order = models.ForeignKey(Order_Model, blank=True, max_length=20, to_field='orderID', on_delete=models.CASCADE, verbose_name='订单id', unique=True)
|
|
order = models.CharField(max_length=20, blank=True, unique=True, verbose_name='订单id')
|
|
order = models.CharField(max_length=20, blank=True, unique=True, verbose_name='订单id')
|
|
|
|
|
|
|
|
+ # 备用字段
|
|
|
|
+ spare_1 = models.CharField(default='', blank=True, max_length=64, verbose_name=u'备用字段1')
|
|
|
|
+ spare_2 = models.CharField(default='', blank=True, max_length=64, verbose_name=u'备用字段2')
|
|
|
|
+ spare_3 = models.CharField(default='', blank=True, max_length=64, db_index=True, verbose_name=u'备用字段3')
|
|
|
|
+ spare_4 = models.CharField(default='', blank=True, max_length=64, db_index=True, verbose_name=u'备用字段4')
|
|
|
|
+
|
|
class Meta:
|
|
class Meta:
|
|
db_table = 'cdk_context'
|
|
db_table = 'cdk_context'
|
|
verbose_name = '激活码表'
|
|
verbose_name = '激活码表'
|
|
@@ -1209,3 +1227,32 @@ class DeviceTypeModel(models.Model):
|
|
db_table = 'device_type'
|
|
db_table = 'device_type'
|
|
verbose_name = '设备类型表'
|
|
verbose_name = '设备类型表'
|
|
verbose_name_plural = verbose_name
|
|
verbose_name_plural = verbose_name
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+class OperatingLogsModel(models.Model):
|
|
|
|
+ id = models.AutoField(primary_key=True)
|
|
|
|
+ userId = models.CharField(blank=False, max_length=32, db_index=True, verbose_name=u'操作人')
|
|
|
|
+ operatingtime = models.DateTimeField(blank=True, verbose_name=u'操作时间', auto_now=True)
|
|
|
|
+ operatingcontent = models.TextField(blank=True, default='', verbose_name=u'操作内容')
|
|
|
|
+ operatingtype = models.CharField(blank=True, verbose_name=u'操作类型', max_length=32)
|
|
|
|
+ is_saveprocessinfo = models.SmallIntegerField(default=1, verbose_name=u'是否保存过程信息。1:保存,2:不保存')
|
|
|
|
+ devUid = models.CharField(default='', blank=True, max_length=32, verbose_name=u'设备ID')
|
|
|
|
+ userIp = models.CharField(blank=True, max_length=20, default='', verbose_name=u'用户ip')
|
|
|
|
+
|
|
|
|
+ class Meta:
|
|
|
|
+ db_table = 'operating_logs'
|
|
|
|
+ verbose_name = '操作数据表'
|
|
|
|
+ verbose_name_plural = verbose_name
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+class ProcessInfoLogsModel(models.Model):
|
|
|
|
+ id = models.AutoField(primary_key=True)
|
|
|
|
+ userId = models.CharField(blank=False, max_length=32, db_index=True, verbose_name=u'操作人')
|
|
|
|
+ devUid = models.CharField(default='', blank=True, max_length=32, verbose_name=u'设备ID')
|
|
|
|
+ operatingcontent = models.TextField(blank=True, default='', verbose_name=u'操作内容')
|
|
|
|
+ operatingtime = models.DateTimeField(blank=True, verbose_name=u'操作时间', auto_now=True)
|
|
|
|
+
|
|
|
|
+ class Meta:
|
|
|
|
+ db_table = 'processinfo_logs'
|
|
|
|
+ verbose_name = '过程信息表'
|
|
|
|
+ verbose_name_plural = verbose_name
|