parent
153f800b91
commit
e9c6cadeb6
@ -1,22 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-06-07 17:43 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0001_initial'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AlterField( |
||||
model_name='userinfo', |
||||
name='first_name', |
||||
field=models.CharField(blank=True, max_length=150, verbose_name='first name'), |
||||
), |
||||
migrations.AlterField( |
||||
model_name='userinfo', |
||||
name='supersign_active', |
||||
field=models.BooleanField(default=True, verbose_name='配置超级签,默认关闭'), |
||||
), |
||||
] |
@ -0,0 +1,68 @@ |
||||
# Generated by Django 3.2.3 on 2022-02-15 21:29 |
||||
|
||||
from django.conf import settings |
||||
from django.db import migrations |
||||
|
||||
price_info_list = [ |
||||
{ |
||||
"name": "1k_times", |
||||
"title": "1k_times", |
||||
"description": "1k_times", |
||||
"price": 2500, |
||||
"package_size": 1000, |
||||
"download_count_gift": 100, |
||||
"is_enable": True, |
||||
}, |
||||
{ |
||||
"name": "10k_times", |
||||
"title": "10k_times", |
||||
"description": "10k_times", |
||||
"price": 22000, |
||||
"package_size": 10000, |
||||
"download_count_gift": 800, |
||||
"is_enable": True, |
||||
}, |
||||
{ |
||||
"name": "100k_times", |
||||
"title": "100k_times", |
||||
"description": "100k_times", |
||||
"price": 200000, |
||||
"package_size": 100000, |
||||
"download_count_gift": 8000, |
||||
"is_enable": True, |
||||
}, |
||||
] |
||||
WEB_DOMAIN = settings.WEB_DOMAIN.split('//')[1] |
||||
domain_cname_info_list = [ |
||||
{ |
||||
"domain_record": WEB_DOMAIN, |
||||
"ip_address": WEB_DOMAIN, |
||||
"is_enable": True, |
||||
"is_system": True, |
||||
"is_https": True if settings.WEB_DOMAIN.startswith('https') else False, |
||||
"description": f"默认下载页域名 {WEB_DOMAIN}", |
||||
}, |
||||
] |
||||
|
||||
|
||||
def add_default_price(apps, schema_editor): |
||||
for price in price_info_list: |
||||
price_model = apps.get_model('api', 'Price') |
||||
price_model.objects.create(**price) |
||||
|
||||
|
||||
def add_default_domain_cname(apps, schema_editor): |
||||
for domain_cname_info in domain_cname_info_list: |
||||
domain_cname_info_model = apps.get_model('api', 'DomainCnameInfo') |
||||
domain_cname_info_model.objects.create(**domain_cname_info) |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0001_initial'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.RunPython(add_default_price), |
||||
migrations.RunPython(add_default_domain_cname) |
||||
] |
@ -1,18 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-06-24 11:04 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0002_auto_20210607_1743'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='apps', |
||||
name='new_bundle_name', |
||||
field=models.CharField(blank=True, help_text='应用新名称', max_length=64, null=True, |
||||
verbose_name='new_bundle_name'), |
||||
), |
||||
] |
@ -1,22 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-07-05 18:19 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0003_apps_new_bundle_name'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AlterField( |
||||
model_name='appreleaseinfo', |
||||
name='app_version', |
||||
field=models.CharField(blank=True, max_length=64, verbose_name='app版本'), |
||||
), |
||||
migrations.AlterField( |
||||
model_name='appreleaseinfo', |
||||
name='build_version', |
||||
field=models.CharField(blank=True, max_length=64, verbose_name='build版本'), |
||||
), |
||||
] |
@ -1,30 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-09-07 19:18 |
||||
|
||||
import django.db.models.deletion |
||||
from django.conf import settings |
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0004_auto_20210705_1819'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.CreateModel( |
||||
name='ThirdWeChatUserInfo', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('openid', models.CharField(max_length=64, unique=True, verbose_name='普通用户的标识,对当前公众号唯一')), |
||||
('nickname', models.CharField(blank=True, max_length=64, verbose_name='昵称')), |
||||
('sex', models.SmallIntegerField(default=0, help_text='值为1时是男性,值为2时是女性,值为0时是未知', verbose_name='性别')), |
||||
('subscribe_time', models.BigIntegerField(verbose_name='订阅时间')), |
||||
('head_img_url', models.CharField(blank=True, max_length=256, null=True, verbose_name='用户头像')), |
||||
('address', models.CharField(blank=True, max_length=128, null=True, verbose_name='地址')), |
||||
('subscribe', models.BooleanField(default=0, verbose_name='是否订阅公众号')), |
||||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='授权时间')), |
||||
('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, |
||||
verbose_name='用户ID')), |
||||
], |
||||
), |
||||
] |
@ -1,26 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-09-07 21:00 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0005_thirdwechatuserinfo'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.RemoveField( |
||||
model_name='userinfo', |
||||
name='qq', |
||||
), |
||||
migrations.AlterField( |
||||
model_name='userinfo', |
||||
name='email', |
||||
field=models.EmailField(blank=True, db_index=True, max_length=255, null=True, verbose_name='email address'), |
||||
), |
||||
migrations.AlterField( |
||||
model_name='userinfo', |
||||
name='mobile', |
||||
field=models.BigIntegerField(db_index=True, help_text='用于手机验证码登录', null=True, verbose_name='手机'), |
||||
), |
||||
] |
@ -1,21 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-09-09 09:19 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0006_auto_20210907_2100'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.RemoveField( |
||||
model_name='udidsyncdeveloper', |
||||
name='platform', |
||||
), |
||||
migrations.AddField( |
||||
model_name='udidsyncdeveloper', |
||||
name='status', |
||||
field=models.BooleanField(default=False, verbose_name='设备在开发者平台状态'), |
||||
), |
||||
] |
@ -1,16 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-09-15 15:41 |
||||
|
||||
from django.db import migrations |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0007_auto_20210909_0919'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.RemoveField( |
||||
model_name='appiosdeveloperinfo', |
||||
name='use_number', |
||||
), |
||||
] |
@ -1,18 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-09-18 15:17 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0008_remove_appiosdeveloperinfo_use_number'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='userdomaininfo', |
||||
name='domain_type', |
||||
field=models.SmallIntegerField(choices=[(0, '下载码域名'), (1, '预览下载域名')], default=1, |
||||
help_text='0 表示下载码域名,扫描下载码域名,会自动跳转到预览域名', verbose_name='域名类型'), |
||||
), |
||||
] |
@ -1,18 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-09-23 12:47 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0009_userdomaininfo_domain_type'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AlterField( |
||||
model_name='userdomaininfo', |
||||
name='domain_type', |
||||
field=models.SmallIntegerField(choices=[(0, '下载码域名'), (1, '下载页域名'), (2, '应用专用域名')], default=1, |
||||
help_text='0 表示下载码域名,扫描下载码域名,会自动跳转到预览域名', verbose_name='域名类型'), |
||||
), |
||||
] |
@ -1,17 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-09-28 15:40 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0010_alter_userdomaininfo_domain_type'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='appudid', |
||||
name='is_download', |
||||
field=models.BooleanField(default=False, verbose_name='描述文件是否已经下载'), |
||||
), |
||||
] |
@ -1,32 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-10-14 14:35 |
||||
|
||||
import django.db.models.deletion |
||||
from django.conf import settings |
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0011_appudid_is_download'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.CreateModel( |
||||
name='UserAdDisplayInfo', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('ad_uri', models.CharField(max_length=256, verbose_name='广告跳转地址')), |
||||
('ad_pic', models.CharField(help_text='像素最高80px', max_length=256, verbose_name='广告图片地址')), |
||||
('weight', models.IntegerField(default=10, verbose_name='广告展示权重')), |
||||
('description', models.TextField(blank=True, default='', null=True, verbose_name='描述信息')), |
||||
('is_enable', models.BooleanField(default=False, verbose_name='广告开启状态')), |
||||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='广告创建时间')), |
||||
('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, |
||||
verbose_name='用户ID')), |
||||
], |
||||
options={ |
||||
'verbose_name': '用户自定义广告', |
||||
'verbose_name_plural': '用户自定义广告', |
||||
}, |
||||
), |
||||
] |
@ -1,22 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-10-14 16:17 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0012_useraddisplayinfo'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='useraddisplayinfo', |
||||
name='ad_name', |
||||
field=models.CharField(default='xx', max_length=256, verbose_name='广告名称'), |
||||
preserve_default=False, |
||||
), |
||||
migrations.AddIndex( |
||||
model_name='useraddisplayinfo', |
||||
index=models.Index(fields=['ad_name', 'user_id'], name='api_useradd_ad_name_4ea10e_idx'), |
||||
), |
||||
] |
@ -1,16 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-10-14 16:18 |
||||
|
||||
from django.db import migrations |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0013_auto_20211014_1617'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AlterUniqueTogether( |
||||
name='useraddisplayinfo', |
||||
unique_together={('ad_name', 'user_id')}, |
||||
), |
||||
] |
@ -1,58 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-10-30 10:57 |
||||
|
||||
import django.db.models.deletion |
||||
from django.conf import settings |
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0014_alter_useraddisplayinfo_unique_together'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.CreateModel( |
||||
name='RemoteClientInfo', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('remote_addr', models.GenericIPAddressField(verbose_name='远程IP地址')), |
||||
('user_agent', models.CharField(max_length=512, verbose_name='客户端agent')), |
||||
('method', models.CharField(max_length=16, verbose_name='请求方式')), |
||||
('uri_info', models.CharField(max_length=256, verbose_name='访问的URI')), |
||||
('a_domain', models.CharField(max_length=128, verbose_name='前端域名')), |
||||
('description', models.CharField(max_length=256, verbose_name='访问描述')), |
||||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='访问时间')), |
||||
], |
||||
options={ |
||||
'verbose_name': '客户端访问记录', |
||||
'verbose_name_plural': '客户端访问记录', |
||||
}, |
||||
), |
||||
migrations.CreateModel( |
||||
name='IosDeveloperPublicPoolBill', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('action', models.SmallIntegerField(choices=[(0, '消费'), (1, '充值'), (2, '转账')], default=0, |
||||
help_text='0 消费 1 充值 2 转账', verbose_name='资金类型')), |
||||
('number', models.IntegerField(default=1, verbose_name='消耗次数')), |
||||
('app_info', models.JSONField(blank=True, max_length=256, null=True, verbose_name='属于哪个APP')), |
||||
('udid_info', models.JSONField(blank=True, max_length=256, null=True, verbose_name='设备id信息')), |
||||
('developer_info', models.JSONField(blank=True, max_length=256, null=True, verbose_name='开发者信息')), |
||||
('description', models.CharField(blank=True, default='', max_length=128, verbose_name='操作描述')), |
||||
('remote_addr', models.GenericIPAddressField(verbose_name='远程IP地址')), |
||||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='添加时间')), |
||||
('to_user_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, |
||||
related_name='to_user_id', to=settings.AUTH_USER_MODEL, |
||||
verbose_name='用户ID')), |
||||
('udid_sync_info', |
||||
models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, |
||||
to='api.udidsyncdeveloper', verbose_name='关联同步设备信息')), |
||||
('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='org_user_id', |
||||
to=settings.AUTH_USER_MODEL, verbose_name='用户ID')), |
||||
], |
||||
options={ |
||||
'verbose_name': '资金流转账单', |
||||
'verbose_name_plural': '资金流转账单', |
||||
}, |
||||
), |
||||
] |
@ -1,19 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-10-30 11:52 |
||||
|
||||
import django.db.models.deletion |
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0015_iosdeveloperpublicpoolbill_remoteclientinfo'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AlterField( |
||||
model_name='appudid', |
||||
name='udid', |
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.udidsyncdeveloper', |
||||
verbose_name='udid唯一标识'), |
||||
), |
||||
] |
@ -1,17 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-11-02 17:44 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0016_alter_appudid_udid'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='developerappid', |
||||
name='profile_id', |
||||
field=models.CharField(blank=True, max_length=64, null=True), |
||||
), |
||||
] |
@ -1,26 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-11-03 14:25 |
||||
|
||||
import django.db.models.deletion |
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0017_developerappid_profile_id'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.CreateModel( |
||||
name='DeviceQueue', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('udid', models.CharField(db_index=True, max_length=64, verbose_name='udid唯一标识')), |
||||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='访问时间')), |
||||
('app_id', |
||||
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.apps', verbose_name='应用id')), |
||||
('developerid', |
||||
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.appiosdeveloperinfo', |
||||
verbose_name='所使用苹果开发者账户')), |
||||
], |
||||
), |
||||
] |
@ -1,17 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-11-03 17:04 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0018_devicequeue'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='iosdeveloperpublicpoolbill', |
||||
name='udid', |
||||
field=models.CharField(blank=True, max_length=64, null=True, verbose_name='设备udid'), |
||||
), |
||||
] |
@ -1,38 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-11-04 11:18 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
import common.base.daobase |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0019_iosdeveloperpublicpoolbill_udid'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.RemoveField( |
||||
model_name='iosdeveloperpublicpoolbill', |
||||
name='udid_info', |
||||
), |
||||
migrations.AddField( |
||||
model_name='iosdeveloperpublicpoolbill', |
||||
name='product', |
||||
field=models.CharField(blank=True, max_length=64, null=True, verbose_name='设备udid'), |
||||
), |
||||
migrations.AddField( |
||||
model_name='iosdeveloperpublicpoolbill', |
||||
name='version', |
||||
field=models.CharField(blank=True, max_length=64, null=True, verbose_name='设备udid'), |
||||
), |
||||
migrations.AlterField( |
||||
model_name='appiosdeveloperinfo', |
||||
name='p8key', |
||||
field=common.base.daobase.AESCharField(max_length=512, verbose_name='p8key'), |
||||
), |
||||
migrations.AlterField( |
||||
model_name='appstorage', |
||||
name='secret_key', |
||||
field=common.base.daobase.AESCharField(blank=True, max_length=128, null=True, verbose_name='存储访问secret'), |
||||
), |
||||
] |
@ -1,38 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-11-05 17:12 |
||||
|
||||
import django.db.models.deletion |
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0020_auto_20211104_1118'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.CreateModel( |
||||
name='AppReportInfo', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('app_name', models.CharField(blank=True, max_length=32, null=True, verbose_name='应用名称')), |
||||
('bundle_id', models.CharField(blank=True, max_length=64, verbose_name='bundle id')), |
||||
('remote_addr', models.GenericIPAddressField(verbose_name='远程IP地址')), |
||||
('report_type', |
||||
models.SmallIntegerField(choices=[(0, '侵权'), (1, '色情'), (2, '赌博'), (3, '欺诈'), (4, '暴力'), (5, '其他')], |
||||
default=5, verbose_name='举报类型')), |
||||
('report_reason', models.CharField(max_length=512, verbose_name='举报详情')), |
||||
('email', models.CharField(max_length=64, verbose_name='联系方式')), |
||||
('username', models.CharField(max_length=64, verbose_name='姓名')), |
||||
('status', models.SmallIntegerField(choices=[(1, '处理中'), (2, '已经处理')], default=1, verbose_name='处理状态')), |
||||
('description', models.CharField(blank=True, default='', max_length=256, verbose_name='备注')), |
||||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='访问时间')), |
||||
('app_id', |
||||
models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.apps', |
||||
verbose_name='应用信息')), |
||||
], |
||||
options={ |
||||
'verbose_name': '应用举报信息', |
||||
'verbose_name_plural': '应用举报信息', |
||||
}, |
||||
), |
||||
] |
@ -1,19 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-11-06 13:04 |
||||
|
||||
import django.db.models.deletion |
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0021_appreportinfo'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='iosdeveloperpublicpoolbill', |
||||
name='app_id', |
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.apps', |
||||
verbose_name='属于哪个APP'), |
||||
), |
||||
] |
@ -1,16 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-11-06 16:14 |
||||
|
||||
from django.db import migrations |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0022_iosdeveloperpublicpoolbill_app_id'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.RemoveField( |
||||
model_name='appudid', |
||||
name='binary_file', |
||||
), |
||||
] |
@ -1,23 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-11-08 17:55 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0023_remove_appudid_binary_file'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='token', |
||||
name='remote_addr', |
||||
field=models.GenericIPAddressField(blank=True, null=True, verbose_name='远程IP地址'), |
||||
), |
||||
migrations.AlterField( |
||||
model_name='order', |
||||
name='order_type', |
||||
field=models.SmallIntegerField(choices=[(0, '用户下单'), (1, '后台充值'), (2, '系统赠送')], default=0, |
||||
verbose_name='订单类型'), |
||||
), |
||||
] |
@ -1,15 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-11-16 21:23 |
||||
|
||||
from django.db import migrations |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0024_auto_20211108_1755'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.DeleteModel( |
||||
name='DeviceQueue', |
||||
), |
||||
] |
@ -1,30 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-12-13 16:43 |
||||
|
||||
import django.db.models.deletion |
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0025_delete_devicequeue'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.CreateModel( |
||||
name='AppleDeveloperToAppUse', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('usable_number', models.IntegerField(default=100, verbose_name='可使用设备数')), |
||||
('description', models.CharField(blank=True, default='', max_length=256, verbose_name='备注')), |
||||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='添加时间')), |
||||
('app_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.apps')), |
||||
('developerid', |
||||
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.appiosdeveloperinfo')), |
||||
], |
||||
options={ |
||||
'verbose_name': '开发者专属于应用', |
||||
'verbose_name_plural': '开发者专属于应用', |
||||
'unique_together': {('app_id', 'developerid')}, |
||||
}, |
||||
), |
||||
] |
@ -1,17 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-12-16 10:10 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0026_appledevelopertoappuse'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='appiosdeveloperinfo', |
||||
name='app_limit_number', |
||||
field=models.IntegerField(default=100, verbose_name='可分配应用数,最大160'), |
||||
), |
||||
] |
@ -1,33 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2021-12-28 14:54 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0027_appiosdeveloperinfo_app_limit_number'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.RemoveField( |
||||
model_name='appiosdeveloperinfo', |
||||
name='is_actived', |
||||
), |
||||
migrations.AddField( |
||||
model_name='appiosdeveloperinfo', |
||||
name='status', |
||||
field=models.SmallIntegerField( |
||||
choices=[(0, '未激活'), (1, '已激活'), (2, '协议待同意'), (3, '维护中'), (4, '证书过期'), (5, '状态异常')], default=0, |
||||
verbose_name='账户状态'), |
||||
), |
||||
migrations.AddField( |
||||
model_name='userdomaininfo', |
||||
name='is_https', |
||||
field=models.BooleanField(default=False, verbose_name='是否支持HTTPS'), |
||||
), |
||||
migrations.AddField( |
||||
model_name='userdomaininfo', |
||||
name='weight', |
||||
field=models.IntegerField(default=10, verbose_name='下载页域名展示权重'), |
||||
), |
||||
] |
@ -1,24 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2022-01-02 15:22 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0028_auto_20211228_1454'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='appiosdeveloperinfo', |
||||
name='clean_status', |
||||
field=models.BooleanField(default=False, verbose_name='清理是否同时禁用设备ID'), |
||||
), |
||||
migrations.AlterField( |
||||
model_name='appiosdeveloperinfo', |
||||
name='status', |
||||
field=models.SmallIntegerField( |
||||
choices=[(-1, '疑似被封'), (0, '未激活'), (1, '已激活'), (2, '协议待同意'), (3, '维护中'), (4, '证书过期'), (5, '状态异常')], |
||||
default=0, verbose_name='账户状态'), |
||||
), |
||||
] |
@ -1,53 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2022-02-03 15:45 |
||||
|
||||
import django.db.models.deletion |
||||
from django.conf import settings |
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0029_auto_20220102_1522'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AlterModelOptions( |
||||
name='iosdeveloperpublicpoolbill', |
||||
options={'verbose_name': '设备消耗账单', 'verbose_name_plural': '设备消耗账单'}, |
||||
), |
||||
migrations.RemoveField( |
||||
model_name='iosdeveloperpublicpoolbill', |
||||
name='action', |
||||
), |
||||
migrations.RemoveField( |
||||
model_name='iosdeveloperpublicpoolbill', |
||||
name='to_user_id', |
||||
), |
||||
migrations.AlterField( |
||||
model_name='iosdeveloperpublicpoolbill', |
||||
name='user_id', |
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, |
||||
verbose_name='用户ID'), |
||||
), |
||||
migrations.CreateModel( |
||||
name='IosDeveloperBill', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('status', models.SmallIntegerField(choices=[(0, '失效'), (1, '撤回'), (2, '转账')], default=0, |
||||
help_text='0 失效 1 撤回 2 转账', verbose_name='状态')), |
||||
('number', models.IntegerField(default=1, verbose_name='设备数量')), |
||||
('description', models.CharField(blank=True, default='', max_length=128, verbose_name='操作描述')), |
||||
('remote_addr', models.GenericIPAddressField(verbose_name='远程IP地址')), |
||||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='添加时间')), |
||||
('to_user_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, |
||||
related_name='to_user_id', to=settings.AUTH_USER_MODEL, |
||||
verbose_name='用户ID')), |
||||
('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='org_user_id', |
||||
to=settings.AUTH_USER_MODEL, verbose_name='用户ID')), |
||||
], |
||||
options={ |
||||
'verbose_name': '设备划转账单', |
||||
'verbose_name_plural': '设备划转账单', |
||||
}, |
||||
), |
||||
] |
@ -1,23 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2022-02-04 09:06 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0030_auto_20220203_1545'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='iosdeveloperbill', |
||||
name='updated_time', |
||||
field=models.DateTimeField(auto_now=True, verbose_name='更新时间'), |
||||
), |
||||
migrations.AlterField( |
||||
model_name='iosdeveloperbill', |
||||
name='status', |
||||
field=models.SmallIntegerField(choices=[(0, '失效'), (1, '已撤回'), (2, '成功')], default=0, |
||||
help_text='0 失效 1 撤回 2 转账', verbose_name='状态'), |
||||
), |
||||
] |
@ -1,26 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2022-02-04 11:25 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0031_auto_20220204_0906'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.CreateModel( |
||||
name='SystemConfig', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('key', models.CharField(max_length=256, unique=True, verbose_name='配置名称')), |
||||
('value', models.CharField(max_length=512, verbose_name='配置值')), |
||||
('description', models.CharField(blank=True, default='', max_length=256, verbose_name='备注')), |
||||
('updated_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), |
||||
], |
||||
options={ |
||||
'verbose_name': '系统配置项', |
||||
'verbose_name_plural': '系统配置项', |
||||
}, |
||||
), |
||||
] |
@ -1,17 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2022-02-05 09:29 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0032_systemconfig'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='appiosdeveloperinfo', |
||||
name='auto_check', |
||||
field=models.BooleanField(default=False, verbose_name='是否自动检测开发者状态'), |
||||
), |
||||
] |
@ -1,32 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2022-02-08 09:41 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0033_appiosdeveloperinfo_auto_check'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.RemoveField( |
||||
model_name='appudid', |
||||
name='is_download', |
||||
), |
||||
migrations.RemoveField( |
||||
model_name='appudid', |
||||
name='is_signed', |
||||
), |
||||
migrations.AddField( |
||||
model_name='apps', |
||||
name='change_auto_sign', |
||||
field=models.BooleanField(default=False, verbose_name='签名相关的数据更新自动签名'), |
||||
), |
||||
migrations.AddField( |
||||
model_name='appudid', |
||||
name='sign_status', |
||||
field=models.SmallIntegerField( |
||||
choices=[(0, '新设备入库准备'), (1, '设备ID已经注册'), (2, 'bundelid已经注册'), (3, '描述文件已经下载'), (4, '已经完成签名打包')], |
||||
default=0, verbose_name='签名状态'), |
||||
), |
||||
] |
@ -1,27 +0,0 @@ |
||||
# Generated by Django 3.2.3 on 2022-02-14 20:42 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
dependencies = [ |
||||
('api', '0034_auto_20220208_0941'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='systemconfig', |
||||
name='enable', |
||||
field=models.BooleanField(default=True, verbose_name='是否启用该配置项'), |
||||
), |
||||
migrations.AlterField( |
||||
model_name='systemconfig', |
||||
name='key', |
||||
field=models.CharField(max_length=128, unique=True, verbose_name='配置名称'), |
||||
), |
||||
migrations.AlterField( |
||||
model_name='systemconfig', |
||||
name='value', |
||||
field=models.TextField(max_length=10240, verbose_name='配置值'), |
||||
), |
||||
] |
@ -0,0 +1,235 @@ |
||||
# Generated by Django 3.2.3 on 2022-02-15 21:22 |
||||
|
||||
import django.db.models.deletion |
||||
from django.conf import settings |
||||
from django.db import migrations, models |
||||
|
||||
import common.base.daobase |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
initial = True |
||||
|
||||
dependencies = [ |
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
||||
('api', '__first__'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.CreateModel( |
||||
name='AppIOSDeveloperInfo', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('issuer_id', models.CharField(max_length=64, verbose_name='标识创建认证令牌的发放者')), |
||||
('private_key_id', models.CharField(max_length=64, verbose_name='密钥 ID')), |
||||
('p8key', common.base.daobase.AESCharField(max_length=512, verbose_name='p8key')), |
||||
('certid', models.CharField(blank=True, max_length=64, null=True, verbose_name='超级签名自动创建证书ID')), |
||||
('usable_number', models.IntegerField(default=100, verbose_name='可使用设备数')), |
||||
('app_limit_number', models.IntegerField(default=100, verbose_name='可分配应用数,最大160')), |
||||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), |
||||
('updated_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), |
||||
('cert_expire_time', models.DateTimeField(blank=True, null=True, verbose_name='证书过期时间')), |
||||
('description', models.TextField(blank=True, default='', null=True, verbose_name='备注')), |
||||
('auth_type', models.SmallIntegerField(choices=[(0, 'p8key认证')], default=0, verbose_name='认证类型')), |
||||
('status', models.SmallIntegerField( |
||||
choices=[(-1, '疑似被封'), (0, '未激活'), (1, '已激活'), (2, '协议待同意'), (3, '维护中'), (4, '证书过期'), (5, '状态异常')], |
||||
default=0, verbose_name='账户状态')), |
||||
('clean_status', models.BooleanField(default=False, verbose_name='清理是否同时禁用设备ID')), |
||||
('auto_check', models.BooleanField(default=False, verbose_name='是否自动检测开发者状态')), |
||||
('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, |
||||
verbose_name='用户ID')), |
||||
], |
||||
options={ |
||||
'verbose_name': '苹果开发者账户', |
||||
'verbose_name_plural': '苹果开发者账户', |
||||
'unique_together': {('user_id', 'issuer_id')}, |
||||
}, |
||||
), |
||||
migrations.CreateModel( |
||||
name='UDIDsyncDeveloper', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('udid', models.CharField(db_index=True, max_length=64, verbose_name='udid唯一标识')), |
||||
('product', models.CharField(blank=True, max_length=64, null=True, verbose_name='产品')), |
||||
('serial', models.CharField(blank=True, max_length=64, null=True, verbose_name='序列号')), |
||||
('version', models.CharField(blank=True, max_length=64, null=True, verbose_name='型号')), |
||||
('status', models.BooleanField(default=False, verbose_name='设备在开发者平台状态')), |
||||
('developerid', |
||||
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='xsign.appiosdeveloperinfo', |
||||
verbose_name='所使用苹果开发者账户')), |
||||
], |
||||
options={ |
||||
'verbose_name': 'iOS开发平台同步设备信息', |
||||
'verbose_name_plural': 'iOS开发平台同步设备信息', |
||||
'unique_together': {('udid', 'developerid')}, |
||||
}, |
||||
), |
||||
migrations.CreateModel( |
||||
name='IosDeveloperPublicPoolBill', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('number', models.IntegerField(default=1, verbose_name='消耗次数')), |
||||
('app_info', models.JSONField(blank=True, max_length=256, null=True, verbose_name='属于哪个APP')), |
||||
('udid', models.CharField(blank=True, max_length=64, null=True, verbose_name='设备udid')), |
||||
('product', models.CharField(blank=True, max_length=64, null=True, verbose_name='设备udid')), |
||||
('version', models.CharField(blank=True, max_length=64, null=True, verbose_name='设备udid')), |
||||
('developer_info', models.JSONField(blank=True, max_length=256, null=True, verbose_name='开发者信息')), |
||||
('description', models.CharField(blank=True, default='', max_length=128, verbose_name='操作描述')), |
||||
('remote_addr', models.GenericIPAddressField(verbose_name='远程IP地址')), |
||||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='添加时间')), |
||||
('app_id', |
||||
models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.apps', |
||||
verbose_name='属于哪个APP')), |
||||
('udid_sync_info', |
||||
models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, |
||||
to='xsign.udidsyncdeveloper', verbose_name='关联同步设备信息')), |
||||
('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, |
||||
verbose_name='用户ID')), |
||||
], |
||||
options={ |
||||
'verbose_name': '设备消耗账单', |
||||
'verbose_name_plural': '设备消耗账单', |
||||
}, |
||||
), |
||||
migrations.CreateModel( |
||||
name='IosDeveloperBill', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('status', models.SmallIntegerField(choices=[(0, '失效'), (1, '已撤回'), (2, '成功')], default=0, |
||||
help_text='0 失效 1 撤回 2 转账', verbose_name='状态')), |
||||
('number', models.IntegerField(default=1, verbose_name='设备数量')), |
||||
('description', models.CharField(blank=True, default='', max_length=128, verbose_name='操作描述')), |
||||
('remote_addr', models.GenericIPAddressField(verbose_name='远程IP地址')), |
||||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='添加时间')), |
||||
('updated_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), |
||||
('to_user_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, |
||||
related_name='to_user_id', to=settings.AUTH_USER_MODEL, |
||||
verbose_name='用户ID')), |
||||
('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='org_user_id', |
||||
to=settings.AUTH_USER_MODEL, verbose_name='用户ID')), |
||||
], |
||||
options={ |
||||
'verbose_name': '设备划转账单', |
||||
'verbose_name_plural': '设备划转账单', |
||||
}, |
||||
), |
||||
migrations.CreateModel( |
||||
name='AppUDID', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('product', models.CharField(blank=True, max_length=64, null=True, verbose_name='产品')), |
||||
('serial', models.CharField(blank=True, max_length=64, null=True, verbose_name='序列号')), |
||||
('version', models.CharField(blank=True, max_length=64, null=True, verbose_name='型号')), |
||||
('imei', models.CharField(blank=True, max_length=64, null=True, verbose_name='型号')), |
||||
('iccid', models.CharField(blank=True, max_length=64, null=True, verbose_name='型号')), |
||||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), |
||||
('updated_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), |
||||
('sign_status', models.SmallIntegerField( |
||||
choices=[(0, '新设备入库准备'), (1, '设备ID已经注册'), (2, 'bundelid已经注册'), (3, '描述文件已经下载'), (4, '已经完成签名打包')], |
||||
default=0, verbose_name='签名状态')), |
||||
('app_id', |
||||
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.apps', verbose_name='属于哪个APP')), |
||||
('udid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='xsign.udidsyncdeveloper', |
||||
verbose_name='udid唯一标识')), |
||||
], |
||||
options={ |
||||
'verbose_name': '设备详情', |
||||
'verbose_name_plural': '设备详情', |
||||
'unique_together': {('app_id', 'udid')}, |
||||
}, |
||||
), |
||||
migrations.CreateModel( |
||||
name='APPToDeveloper', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('binary_file', |
||||
models.CharField(blank=True, max_length=128, null=True, unique=True, verbose_name='签名包名称')), |
||||
('release_file', models.CharField(blank=True, max_length=128, null=True, verbose_name='源包名称')), |
||||
('updated_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), |
||||
('app_id', |
||||
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.apps', verbose_name='属于哪个APP')), |
||||
('developerid', |
||||
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='xsign.appiosdeveloperinfo', |
||||
verbose_name='所使用苹果开发者账户')), |
||||
], |
||||
options={ |
||||
'verbose_name': '应用开发者绑定', |
||||
'verbose_name_plural': '应用开发者绑定', |
||||
}, |
||||
), |
||||
migrations.CreateModel( |
||||
name='APPSuperSignUsedInfo', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), |
||||
('updated_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), |
||||
('app_id', |
||||
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.apps', verbose_name='属于哪个APP')), |
||||
('developerid', |
||||
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='xsign.appiosdeveloperinfo', |
||||
verbose_name='所使用苹果开发者账户')), |
||||
('udid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='xsign.appudid', |
||||
verbose_name='所消耗的udid')), |
||||
('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, |
||||
verbose_name='用户ID')), |
||||
], |
||||
options={ |
||||
'verbose_name': '设备使用统计', |
||||
'verbose_name_plural': '设备使用统计', |
||||
}, |
||||
), |
||||
migrations.CreateModel( |
||||
name='DeveloperDevicesID', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('did', models.CharField(max_length=64)), |
||||
('app_id', |
||||
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.apps', verbose_name='属于哪个APP')), |
||||
('developerid', |
||||
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='xsign.appiosdeveloperinfo', |
||||
verbose_name='所使用苹果开发者账户')), |
||||
('udid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='xsign.udidsyncdeveloper', |
||||
verbose_name='所消耗的udid')), |
||||
], |
||||
options={ |
||||
'verbose_name': '超级签Devices id', |
||||
'verbose_name_plural': '超级签Devices id', |
||||
'unique_together': {('did', 'developerid', 'app_id')}, |
||||
}, |
||||
), |
||||
migrations.CreateModel( |
||||
name='DeveloperAppID', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('aid', models.CharField(max_length=64)), |
||||
('profile_id', models.CharField(blank=True, max_length=64, null=True)), |
||||
('app_id', |
||||
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.apps', verbose_name='属于哪个APP')), |
||||
('developerid', |
||||
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='xsign.appiosdeveloperinfo', |
||||
verbose_name='所使用苹果开发者账户')), |
||||
], |
||||
options={ |
||||
'verbose_name': '超级签APP id', |
||||
'verbose_name_plural': '超级签APP id', |
||||
'unique_together': {('aid', 'developerid', 'app_id')}, |
||||
}, |
||||
), |
||||
migrations.CreateModel( |
||||
name='AppleDeveloperToAppUse', |
||||
fields=[ |
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
('usable_number', models.IntegerField(default=100, verbose_name='可使用设备数')), |
||||
('description', models.CharField(blank=True, default='', max_length=256, verbose_name='备注')), |
||||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='添加时间')), |
||||
('app_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.apps')), |
||||
('developerid', |
||||
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='xsign.appiosdeveloperinfo')), |
||||
], |
||||
options={ |
||||
'verbose_name': '开发者专属于应用', |
||||
'verbose_name_plural': '开发者专属于应用', |
||||
'unique_together': {('app_id', 'developerid')}, |
||||
}, |
||||
), |
||||
] |
Loading…
Reference in new issue