|
@@ -2884,7 +2884,7 @@ class UnicomCombo(models.Model):
|
|
|
package_id = models.CharField(default='', max_length=32, verbose_name=u'联通套餐id')
|
|
|
combo_name = models.CharField(default='', max_length=32, verbose_name=u'套餐名称')
|
|
|
status = models.SmallIntegerField(default=0, verbose_name='状态{0:开启,1:停用}')
|
|
|
- # 套餐类型 0:商用,1:初始化赠送,2:赠送套餐
|
|
|
+ # 套餐类型 0:联通商用,1:联通初始化赠送,2:联通赠送套餐,3:五兴电信
|
|
|
combo_type = models.SmallIntegerField(default=0, verbose_name='套餐类型')
|
|
|
flow_total = models.IntegerField(default=0, blank=True, verbose_name=u'流量总量值 单位(MB)')
|
|
|
expiration_days = models.IntegerField(default=0, blank=True, verbose_name=u'有效期天数')
|
|
@@ -3529,3 +3529,22 @@ class SocketSchedule(models.Model):
|
|
|
db_table = 's_socket_schedule'
|
|
|
verbose_name = '插座排程'
|
|
|
verbose_name_plural = verbose_name
|
|
|
+
|
|
|
+
|
|
|
+class ExchangeCode(models.Model):
|
|
|
+ id = models.AutoField(primary_key=True)
|
|
|
+ code = models.CharField(max_length=32, unique=True, verbose_name='兑换码')
|
|
|
+ status = models.BooleanField(default=False, verbose_name='状态(0-未使用,1-已使用)')
|
|
|
+ is_down = models.BooleanField(default=0, verbose_name='是否已下载 0-未下载,1-已下载')
|
|
|
+ package_type = models.SmallIntegerField(default=0, verbose_name='套餐包类型 0-联通,1-五兴,2-其它')
|
|
|
+ package_id = models.BigIntegerField(default=0, verbose_name='套餐包id')
|
|
|
+ expire_time = models.IntegerField(default=0, verbose_name='过期时间')
|
|
|
+ # 备用字段
|
|
|
+ spare_1 = models.CharField(default='', blank=True, max_length=64, verbose_name=u'备用字段1')
|
|
|
+ created_time = models.IntegerField(default=0, verbose_name='创建时间')
|
|
|
+ updated_time = models.IntegerField(default=0, verbose_name='创建时间')
|
|
|
+
|
|
|
+ class Meta:
|
|
|
+ db_table = 'exchange_code'
|
|
|
+ verbose_name = '套餐包兑换码'
|
|
|
+ verbose_name_plural = verbose_name
|