|
|
|
@@ -9,7 +9,7 @@ from utils.qiniucdn import qiniu_file_url
|
|
9
|
9
|
|
|
10
|
10
|
class UUIDInfo(BaseModelMixin):
|
|
11
|
11
|
uuid = models.CharField(_(u'uuid'), max_length=22, blank=True, null=True, help_text=u'唯一标识', db_index=True, unique=True)
|
|
12
|
|
- lensman_id = models.CharField(_(u'lensman_id'), max_length=255, blank=True, null=True, help_text=u'摄影师唯一标识', db_index=True)
|
|
|
12
|
+ lensman_id = models.CharField(_(u'lensman_id'), max_length=32, blank=True, null=True, help_text=u'摄影师唯一标识', db_index=True)
|
|
13
|
13
|
|
|
14
|
14
|
class Meta:
|
|
15
|
15
|
verbose_name = _('uuidinfo')
|
|
|
|
@@ -28,21 +28,21 @@ class UUIDInfo(BaseModelMixin):
|
|
28
|
28
|
|
|
29
|
29
|
|
|
30
|
30
|
class PhotoUUIDInfo(BaseModelMixin):
|
|
31
|
|
- photo_md5 = models.CharField(_(u'photo_md5'), max_length=255, blank=True, null=True, help_text=u'照片唯一标识', db_index=True, unique=True)
|
|
|
31
|
+ photo_md5 = models.CharField(_(u'photo_md5'), max_length=32, blank=True, null=True, help_text=u'照片唯一标识', db_index=True, unique=True)
|
|
32
|
32
|
|
|
33
|
|
- photo_path = models.CharField(_(u'photo_path'), max_length=255, blank=True, null=True, help_text=u'照片路径')
|
|
|
33
|
+ photo_path = models.CharField(_(u'photo_path'), max_length=32, blank=True, null=True, help_text=u'照片路径')
|
|
34
|
34
|
photo_w = models.IntegerField(_(u'photo_w'), default=0, help_text=u'照片宽度')
|
|
35
|
35
|
photo_h = models.IntegerField(_(u'photo_h'), default=0, help_text=u'照片高度')
|
|
36
|
36
|
|
|
37
|
|
- photo_watermark_path = models.CharField(_(u'photo_watermark_path'), max_length=255, blank=True, null=True, help_text=u'照片存放路径,Box上传,有水印,服务器添加')
|
|
|
37
|
+ photo_watermark_path = models.CharField(_(u'photo_watermark_path'), max_length=32, blank=True, null=True, help_text=u'照片存放路径,Box上传,有水印,服务器添加')
|
|
38
|
38
|
photo_watermark_w = models.IntegerField(_(u'photo_watermark_w'), default=0, help_text=u'照片水印图宽度')
|
|
39
|
39
|
photo_watermark_h = models.IntegerField(_(u'photo_watermark_h'), default=0, help_text=u'照片水印图高度')
|
|
40
|
40
|
|
|
41
|
|
- photo_thumbnail_path = models.CharField(_(u'photo_thumbnail_path'), max_length=255, blank=True, null=True, help_text=u'照片缩略图存放路径')
|
|
|
41
|
+ photo_thumbnail_path = models.CharField(_(u'photo_thumbnail_path'), max_length=32, blank=True, null=True, help_text=u'照片缩略图存放路径')
|
|
42
|
42
|
photo_thumbnail_w = models.IntegerField(_(u'photo_thumbnail_w'), default=0, help_text=u'照片缩略图宽度')
|
|
43
|
43
|
photo_thumbnail_h = models.IntegerField(_(u'photo_thumbnail_h'), default=0, help_text=u'照片缩略图高度')
|
|
44
|
44
|
|
|
45
|
|
- photo_thumbnail2_path = models.CharField(_(u'photo_thumbnail2_path'), max_length=255, blank=True, null=True, help_text=u'照片缩略图存放路径')
|
|
|
45
|
+ photo_thumbnail2_path = models.CharField(_(u'photo_thumbnail2_path'), max_length=32, blank=True, null=True, help_text=u'照片缩略图存放路径')
|
|
46
|
46
|
photo_thumbnail2_w = models.IntegerField(_(u'photo_thumbnail2_w'), default=0, help_text=u'照片缩略图宽度')
|
|
47
|
47
|
photo_thumbnail2_h = models.IntegerField(_(u'photo_thumbnail2_h'), default=0, help_text=u'照片缩略图高度')
|
|
48
|
48
|
|
|
|
|
@@ -55,13 +55,13 @@ class PhotoUUIDInfo(BaseModelMixin):
|
|
55
|
55
|
|
|
56
|
56
|
|
|
57
|
57
|
class PhotosInfo(BaseModelMixin):
|
|
58
|
|
- lensman_id = models.CharField(_(u'lensman_id'), max_length=255, blank=True, null=True, help_text=u'摄影师唯一标识', db_index=True)
|
|
59
|
|
- session_id = models.CharField(_(u'session_id'), max_length=255, blank=True, null=True, help_text=u'照片组唯一标识', db_index=True)
|
|
60
|
|
- photo_id = models.CharField(_(u'photo_id'), max_length=255, blank=True, null=True, help_text=u'照片唯一标识', db_index=True)
|
|
61
|
|
- p_photo_path = models.CharField(_(u'p_photo_path'), max_length=255, blank=True, null=True, help_text=u'照片存放路径,Box上传,有水印,服务器添加')
|
|
62
|
|
- m_photo_path = models.CharField(_(u'm_photo_path'), max_length=255, blank=True, null=True, help_text=u'照片存放路径,Box上传,无水印')
|
|
63
|
|
- l_photo_path = models.CharField(_(u'l_photo_path'), max_length=255, blank=True, null=True, help_text=u'照片存放路径,美化大图')
|
|
64
|
|
- r_photo_path = models.CharField(_(u'r_photo_path'), max_length=255, blank=True, null=True, help_text=u'照片存放路径,高清大图')
|
|
|
58
|
+ lensman_id = models.CharField(_(u'lensman_id'), max_length=32, blank=True, null=True, help_text=u'摄影师唯一标识', db_index=True)
|
|
|
59
|
+ session_id = models.CharField(_(u'session_id'), max_length=32, blank=True, null=True, help_text=u'照片组唯一标识', db_index=True)
|
|
|
60
|
+ photo_id = models.CharField(_(u'photo_id'), max_length=32, blank=True, null=True, help_text=u'照片唯一标识', db_index=True)
|
|
|
61
|
+ p_photo_path = models.CharField(_(u'p_photo_path'), max_length=32, blank=True, null=True, help_text=u'照片存放路径,Box上传,有水印,服务器添加')
|
|
|
62
|
+ m_photo_path = models.CharField(_(u'm_photo_path'), max_length=32, blank=True, null=True, help_text=u'照片存放路径,Box上传,无水印')
|
|
|
63
|
+ l_photo_path = models.CharField(_(u'l_photo_path'), max_length=32, blank=True, null=True, help_text=u'照片存放路径,美化大图')
|
|
|
64
|
+ r_photo_path = models.CharField(_(u'r_photo_path'), max_length=32, blank=True, null=True, help_text=u'照片存放路径,高清大图')
|
|
65
|
65
|
|
|
66
|
66
|
class Meta:
|
|
67
|
67
|
verbose_name = _('photosinfo')
|