ss="lines-num lines-num-old">
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('mch', '0068_alter_consumeshotunbindinginfo_reason'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='consumeinfosubmitloginfo',
+ name='delete_type',
+ field=models.IntegerField(choices=[(0, '未删除'), (1, '退货'), (2, '解绑')], db_index=True, default=0, help_text='删除类型', verbose_name='delete_type'),
+ ),
+ migrations.AddField(
+ model_name='consumeinfosubmitloginfo',
+ name='unbound',
+ field=models.BooleanField(default=False, help_text='是否为已解绑镜头', verbose_name='unbound'),
+ ),
+ ]
@@ -674,6 +674,17 @@ class LatestAppScreenInfo(BaseModelMixin): |
||
| 674 | 674 |
|
| 675 | 675 |
|
| 676 | 676 |
class ConsumeInfoSubmitLogInfo(BaseModelMixin): |
| 677 |
+ |
|
| 678 |
+ UNDELETE = 0 |
|
| 679 |
+ RETURN = 1 |
|
| 680 |
+ UNBINDING = 2 |
|
| 681 |
+ |
|
| 682 |
+ DELETE_TYPE = ( |
|
| 683 |
+ (UNDELETE, u'未删除'), |
|
| 684 |
+ (RETURN, u'退货'), |
|
| 685 |
+ (UNBINDING, u'解绑'), |
|
| 686 |
+ ) |
|
| 687 |
+ |
|
| 677 | 688 |
user_id = models.CharField(_(u'user_id'), max_length=32, blank=True, null=True, help_text=u'用户唯一标识', db_index=True) |
| 678 | 689 |
|
| 679 | 690 |
phone = models.CharField(_(u'phone'), max_length=11, blank=True, null=True, help_text=u'用户手机', db_index=True) |
@@ -718,6 +729,9 @@ class ConsumeInfoSubmitLogInfo(BaseModelMixin): |
||
| 718 | 729 |
|
| 719 | 730 |
test_user = models.BooleanField(_(u'test_user'), default=False, help_text=u'是否为测试用户') |
| 720 | 731 |
|
| 732 |
+ unbound = models.BooleanField(_(u'unbound'), default=False, help_text=u'是否为已解绑镜头') |
|
| 733 |
+ delete_type = models.IntegerField(_(u'delete_type'), choices=DELETE_TYPE, default=UNDELETE, help_text=u'删除类型', db_index=True) |
|
| 734 |
+ |
|
| 721 | 735 |
class Meta: |
| 722 | 736 |
verbose_name = _(u'消费者信息提交记录') |
| 723 | 737 |
verbose_name_plural = _(u'消费者信息提交记录') |
@@ -783,6 +797,7 @@ class ConsumeInfoSubmitLogInfo(BaseModelMixin): |
||
| 783 | 797 |
'serialNo': self.serialNo, |
| 784 | 798 |
'integral': self.integral, |
| 785 | 799 |
'dupload': self.dupload, |
| 800 |
+ 'unbound': self.unbound, |
|
| 786 | 801 |
'code_version': self.code_version, |
| 787 | 802 |
'created_at': tc.local_string(utc_dt=self.created_at, format='%Y-%m-%d'), |
| 788 | 803 |
} |
@@ -798,6 +813,7 @@ class ConsumeInfoSubmitLogInfo(BaseModelMixin): |
||
| 798 | 813 |
'phone': self.phone, |
| 799 | 814 |
'code_version': self.code_version, |
| 800 | 815 |
'dupload': self.dupload, |
| 816 |
+ 'unbound': self.unbound, |
|
| 801 | 817 |
'created_at': tc.local_string(utc_dt=self.created_at), |
| 802 | 818 |
} |
| 803 | 819 |
|