parent
76bde18c5a
commit
0ac35618e2
@ -1,25 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2020-05-03 11:20 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0001_initial'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterField( |
|
||||||
model_name='appiosdeveloperinfo', |
|
||||||
name='email', |
|
||||||
field=models.EmailField(blank=True, max_length=64, null=True, verbose_name='email address'), |
|
||||||
), |
|
||||||
migrations.AlterUniqueTogether( |
|
||||||
name='appiosdeveloperinfo', |
|
||||||
unique_together={('user_id', 'email')}, |
|
||||||
), |
|
||||||
migrations.RemoveField( |
|
||||||
model_name='appiosdeveloperinfo', |
|
||||||
name='name', |
|
||||||
), |
|
||||||
] |
|
@ -1,30 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2020-05-03 21:16 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
import django.db.models.deletion |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0002_auto_20200503_1120'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
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, 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='api.AppIOSDeveloperInfo', |
|
||||||
verbose_name='所使用苹果开发者账户')), |
|
||||||
], |
|
||||||
options={ |
|
||||||
'verbose_name': '设备使用统计', |
|
||||||
'verbose_name_plural': '设备使用统计', |
|
||||||
}, |
|
||||||
), |
|
||||||
] |
|
@ -1,21 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2020-05-04 20:54 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0003_apptodeveloper'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterModelOptions( |
|
||||||
name='apptodeveloper', |
|
||||||
options={'verbose_name': '应用开发者绑定', 'verbose_name_plural': '应用开发者绑定'}, |
|
||||||
), |
|
||||||
migrations.AlterField( |
|
||||||
model_name='apptodeveloper', |
|
||||||
name='binary_file', |
|
||||||
field=models.CharField(blank=True, max_length=128, null=True, unique=True, verbose_name='签名包名称'), |
|
||||||
), |
|
||||||
] |
|
@ -1,17 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2020-05-05 14:23 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0004_auto_20200504_2054'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='apptodeveloper', |
|
||||||
name='release_file', |
|
||||||
field=models.CharField(blank=True, max_length=128, null=True, verbose_name='源包名称'), |
|
||||||
), |
|
||||||
] |
|
@ -1,32 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2020-05-05 17:41 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
import django.db.models.deletion |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0005_apptodeveloper_release_file'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
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='型号')), |
|
||||||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), |
|
||||||
('developerid', |
|
||||||
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.AppIOSDeveloperInfo', |
|
||||||
verbose_name='所使用苹果开发者账户')), |
|
||||||
], |
|
||||||
options={ |
|
||||||
'verbose_name': 'iOS开发平台同步设备信息', |
|
||||||
'verbose_name_plural': 'iOS开发平台同步设备信息', |
|
||||||
'unique_together': {('udid', 'developerid')}, |
|
||||||
}, |
|
||||||
), |
|
||||||
] |
|
@ -1,22 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2020-05-20 11:53 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0006_udidsyncdeveloper'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='apps', |
|
||||||
name='wxeasytype', |
|
||||||
field=models.BigIntegerField(default=True, verbose_name='微信内简易房屋,避免微信封停'), |
|
||||||
), |
|
||||||
migrations.AddField( |
|
||||||
model_name='apps', |
|
||||||
name='wxredirect', |
|
||||||
field=models.BigIntegerField(default=True, verbose_name='微信内第三方链接自动跳转'), |
|
||||||
), |
|
||||||
] |
|
@ -1,17 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2020-09-22 19:51 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0007_auto_20200520_1153'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterField( |
|
||||||
model_name='userinfo', |
|
||||||
name='domain_name', |
|
||||||
field=models.CharField(blank=True, max_length=64, null=True, verbose_name='下载页面域名'), |
|
||||||
), |
|
||||||
] |
|
@ -1,27 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2020-09-25 20:41 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0008_auto_20200922_1951'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='userinfo', |
|
||||||
name='storage_active', |
|
||||||
field=models.BooleanField(default=False, verbose_name='配置存储,默认关闭'), |
|
||||||
), |
|
||||||
migrations.AddField( |
|
||||||
model_name='userinfo', |
|
||||||
name='supersign_active', |
|
||||||
field=models.BooleanField(default=False, verbose_name='配置超级签,默认关闭'), |
|
||||||
), |
|
||||||
migrations.AlterField( |
|
||||||
model_name='userinfo', |
|
||||||
name='download_times', |
|
||||||
field=models.IntegerField(default=100, verbose_name='可用下载次数'), |
|
||||||
), |
|
||||||
] |
|
@ -1,17 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-01-07 18:59 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0009_auto_20200925_2041'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='userinfo', |
|
||||||
name='api_token', |
|
||||||
field=models.CharField(default='', max_length=256, verbose_name='api访问密钥'), |
|
||||||
), |
|
||||||
] |
|
@ -1,22 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-01-25 11:37 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0010_userinfo_api_token'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.RemoveField( |
|
||||||
model_name='udidsyncdeveloper', |
|
||||||
name='created_time', |
|
||||||
), |
|
||||||
migrations.AddField( |
|
||||||
model_name='udidsyncdeveloper', |
|
||||||
name='platform', |
|
||||||
field=models.SmallIntegerField(choices=[(0, 'app developer'), (1, 'fly分发')], default=0, |
|
||||||
verbose_name='udid所在平台'), |
|
||||||
), |
|
||||||
] |
|
@ -1,18 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-01-27 21:01 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0011_auto_20210125_1137'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterField( |
|
||||||
model_name='udidsyncdeveloper', |
|
||||||
name='platform', |
|
||||||
field=models.SmallIntegerField(choices=[(0, 'fly分发'), (1, 'app developer')], default=0, |
|
||||||
verbose_name='udid所在平台'), |
|
||||||
), |
|
||||||
] |
|
@ -1,22 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-01-28 18:15 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0012_auto_20210127_2101'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='apps', |
|
||||||
name='domain_name', |
|
||||||
field=models.CharField(blank=True, max_length=64, null=True, verbose_name='专属访问域名'), |
|
||||||
), |
|
||||||
migrations.AlterField( |
|
||||||
model_name='apps', |
|
||||||
name='wxeasytype', |
|
||||||
field=models.BigIntegerField(default=True, verbose_name='微信内简易模式,避免微信封停'), |
|
||||||
), |
|
||||||
] |
|
@ -1,36 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-01-29 16:00 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0013_auto_20210128_1815'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='appiosdeveloperinfo', |
|
||||||
name='auth_type', |
|
||||||
field=models.SmallIntegerField(choices=[(0, 'p8key认证'), (1, '用户名密码认证')], default=0, verbose_name='认证类型'), |
|
||||||
), |
|
||||||
migrations.AddField( |
|
||||||
model_name='appiosdeveloperinfo', |
|
||||||
name='issuer_id', |
|
||||||
field=models.CharField(blank=True, max_length=64, null=True, verbose_name='标识创建认证令牌的发放者'), |
|
||||||
), |
|
||||||
migrations.AddField( |
|
||||||
model_name='appiosdeveloperinfo', |
|
||||||
name='p8key', |
|
||||||
field=models.CharField(blank=True, max_length=512, null=True, verbose_name='p8key'), |
|
||||||
), |
|
||||||
migrations.AddField( |
|
||||||
model_name='appiosdeveloperinfo', |
|
||||||
name='private_key_id', |
|
||||||
field=models.CharField(blank=True, max_length=64, null=True, verbose_name='密钥 ID'), |
|
||||||
), |
|
||||||
migrations.AlterUniqueTogether( |
|
||||||
name='appiosdeveloperinfo', |
|
||||||
unique_together={('user_id', 'issuer_id'), ('user_id', 'email')}, |
|
||||||
), |
|
||||||
] |
|
@ -1,17 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-01-29 17:30 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0014_auto_20210129_1600'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterField( |
|
||||||
model_name='appiosdeveloperinfo', |
|
||||||
name='p8key', |
|
||||||
field=models.TextField(blank=True, max_length=512, null=True, verbose_name='p8key'), |
|
||||||
), |
|
||||||
] |
|
@ -1,49 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-01-31 19:55 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
import django.db.models.deletion |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0015_auto_20210129_1730'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
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='api.AppIOSDeveloperInfo', |
|
||||||
verbose_name='所使用苹果开发者账户')), |
|
||||||
('udid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.AppUDID', |
|
||||||
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)), |
|
||||||
('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='api.AppIOSDeveloperInfo', |
|
||||||
verbose_name='所使用苹果开发者账户')), |
|
||||||
], |
|
||||||
options={ |
|
||||||
'verbose_name': '超级签APP id', |
|
||||||
'verbose_name_plural': '超级签APP id', |
|
||||||
'unique_together': {('aid', 'developerid', 'app_id')}, |
|
||||||
}, |
|
||||||
), |
|
||||||
] |
|
@ -1,19 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-01-31 21:08 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
import django.db.models.deletion |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0016_developerappid_developerdevicesid'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterField( |
|
||||||
model_name='developerdevicesid', |
|
||||||
name='udid', |
|
||||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.UDIDsyncDeveloper', |
|
||||||
verbose_name='所消耗的udid'), |
|
||||||
), |
|
||||||
] |
|
@ -1,22 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-03-08 13:52 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0017_auto_20210131_2108'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='apps', |
|
||||||
name='enable_push_vpn', |
|
||||||
field=models.BigIntegerField(default=False, verbose_name='特殊权限(包含network、vpn)'), |
|
||||||
), |
|
||||||
migrations.AddField( |
|
||||||
model_name='apps', |
|
||||||
name='new_bundle_id', |
|
||||||
field=models.CharField(blank=True, help_text='用与超级签某些因素下修改包名', max_length=64, verbose_name='new_bundle_id'), |
|
||||||
), |
|
||||||
] |
|
@ -1,22 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-03-08 13:55 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0018_auto_20210308_1352'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.RemoveField( |
|
||||||
model_name='apps', |
|
||||||
name='enable_push_vpn', |
|
||||||
), |
|
||||||
migrations.AddField( |
|
||||||
model_name='apps', |
|
||||||
name='supersign_type', |
|
||||||
field=models.SmallIntegerField(choices=[(0, '普通权限'), (1, '特殊权限(包含network、vpn)')], default=0, |
|
||||||
verbose_name='签名类型'), |
|
||||||
), |
|
||||||
] |
|
@ -1,18 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-03-08 14:53 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0019_auto_20210308_1355'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterField( |
|
||||||
model_name='apps', |
|
||||||
name='new_bundle_id', |
|
||||||
field=models.CharField(blank=True, help_text='用与超级签某些因素下修改包名', max_length=64, null=True, |
|
||||||
verbose_name='new_bundle_id'), |
|
||||||
), |
|
||||||
] |
|
@ -1,23 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-03-08 19:51 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0020_auto_20210308_1453'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='apps', |
|
||||||
name='supersign_limit_number', |
|
||||||
field=models.IntegerField(default=0, verbose_name='签名使用限额'), |
|
||||||
), |
|
||||||
migrations.AlterField( |
|
||||||
model_name='apps', |
|
||||||
name='new_bundle_id', |
|
||||||
field=models.CharField(blank=True, help_text='用于超级签某些因素下需要修改包名', max_length=64, null=True, |
|
||||||
verbose_name='new_bundle_id'), |
|
||||||
), |
|
||||||
] |
|
@ -1,17 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-03-16 14:54 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0021_auto_20210308_1951'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='appreleaseinfo', |
|
||||||
name='distribution_name', |
|
||||||
field=models.CharField(blank=True, default='', max_length=128, null=True, verbose_name='企业签名'), |
|
||||||
), |
|
||||||
] |
|
@ -1,31 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-03-16 16:02 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
import django.db.models.deletion |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0022_appreleaseinfo_distribution_name'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.CreateModel( |
|
||||||
name='AppScreenShot', |
|
||||||
fields=[ |
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|
||||||
('screenshot_url', models.CharField(blank=True, max_length=128, verbose_name='应用截图URL')), |
|
||||||
('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='属于哪个APP')), |
|
||||||
], |
|
||||||
options={ |
|
||||||
'verbose_name': '应用截图', |
|
||||||
'verbose_name_plural': '应用截图', |
|
||||||
}, |
|
||||||
), |
|
||||||
migrations.AddIndex( |
|
||||||
model_name='appscreenshot', |
|
||||||
index=models.Index(fields=['app_id'], name='api_appscre_app_id__b65655_idx'), |
|
||||||
), |
|
||||||
] |
|
@ -1,17 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-03-24 17:51 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0023_auto_20210316_1602'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterField( |
|
||||||
model_name='userinfo', |
|
||||||
name='download_times', |
|
||||||
field=models.PositiveIntegerField(default=0, verbose_name='可用下载次数,需要用户充值'), |
|
||||||
), |
|
||||||
] |
|
@ -1,54 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-03-29 14:10 |
|
||||||
|
|
||||||
from django.conf import settings |
|
||||||
from django.db import migrations, models |
|
||||||
import django.db.models.deletion |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0024_auto_20210324_1751'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.CreateModel( |
|
||||||
name='Price', |
|
||||||
fields=[ |
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|
||||||
('name', models.CharField(max_length=128, unique=True, verbose_name='下载包唯一名称')), |
|
||||||
('title', models.CharField(max_length=128, verbose_name='下载包名称')), |
|
||||||
('description', models.CharField(max_length=128, verbose_name='下载包描述')), |
|
||||||
('price', models.FloatField(verbose_name='下载包价格')), |
|
||||||
('package_size', models.BigIntegerField(verbose_name='下载包次数')), |
|
||||||
('download_count_gift', models.IntegerField(default=0, verbose_name='赠送下载次数')), |
|
||||||
('is_enable', models.BooleanField(default=True, verbose_name='是否启用该价格')), |
|
||||||
('updated_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), |
|
||||||
], |
|
||||||
options={ |
|
||||||
'verbose_name': '价格列表', |
|
||||||
'verbose_name_plural': '价格列表', |
|
||||||
'unique_together': {('price', 'package_size')}, |
|
||||||
}, |
|
||||||
), |
|
||||||
migrations.CreateModel( |
|
||||||
name='Order', |
|
||||||
fields=[ |
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|
||||||
('payment_type', models.SmallIntegerField(choices=[(0, '微信'), (1, '支付宝'), (2, '优惠码'), (4, '银联')])), |
|
||||||
('payment_number', models.CharField(blank=True, max_length=128, null=True, verbose_name='支付第3方订单号')), |
|
||||||
('order_number', models.CharField(max_length=128, unique=True, verbose_name='订单号')), |
|
||||||
('actual_amount', models.FloatField(verbose_name='实付金额')), |
|
||||||
('status', models.SmallIntegerField( |
|
||||||
choices=[(0, '交易成功'), (1, '待支付'), (2, '退费申请中'), (3, '已退费'), (4, '主动取消'), (5, '超时取消')], |
|
||||||
verbose_name='状态')), |
|
||||||
('order_type', |
|
||||||
models.SmallIntegerField(choices=[(0, '用户下单'), (1, '后台充值')], default=0, verbose_name='订单类型')), |
|
||||||
('date', models.DateTimeField(auto_now_add=True, verbose_name='订单生成时间')), |
|
||||||
('pay_time', models.DateTimeField(blank=True, null=True, verbose_name='付款时间')), |
|
||||||
('cancel_time', models.DateTimeField(blank=True, null=True, verbose_name='订单取消时间')), |
|
||||||
( |
|
||||||
'account', |
|
||||||
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), |
|
||||||
], |
|
||||||
), |
|
||||||
] |
|
@ -1,17 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-03-29 14:19 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0025_order_price'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterField( |
|
||||||
model_name='price', |
|
||||||
name='price', |
|
||||||
field=models.BigIntegerField(verbose_name='下载包价格'), |
|
||||||
), |
|
||||||
] |
|
@ -1,34 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-03-29 15:06 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0026_auto_20210329_1419'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='order', |
|
||||||
name='actual_download_gift_times', |
|
||||||
field=models.BigIntegerField(default=0, verbose_name='实际赠送的数量'), |
|
||||||
preserve_default=False, |
|
||||||
), |
|
||||||
migrations.AddField( |
|
||||||
model_name='order', |
|
||||||
name='actual_download_times', |
|
||||||
field=models.BigIntegerField(default=0, verbose_name='实际购买的数量'), |
|
||||||
preserve_default=False, |
|
||||||
), |
|
||||||
migrations.AlterField( |
|
||||||
model_name='order', |
|
||||||
name='actual_amount', |
|
||||||
field=models.BigIntegerField(verbose_name='实付金额,单位分'), |
|
||||||
), |
|
||||||
migrations.AlterField( |
|
||||||
model_name='price', |
|
||||||
name='price', |
|
||||||
field=models.BigIntegerField(verbose_name='下载包价格,单位分'), |
|
||||||
), |
|
||||||
] |
|
@ -1,19 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-03-29 15:12 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
import django.utils.timezone |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0027_auto_20210329_1506'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='order', |
|
||||||
name='created_time', |
|
||||||
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now, verbose_name='订单创建时间'), |
|
||||||
preserve_default=False, |
|
||||||
), |
|
||||||
] |
|
@ -1,16 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-03-29 16:27 |
|
||||||
|
|
||||||
from django.db import migrations |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0028_order_created_time'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.RemoveField( |
|
||||||
model_name='order', |
|
||||||
name='date', |
|
||||||
), |
|
||||||
] |
|
@ -1,27 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-03-29 17:55 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0029_remove_order_date'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='order', |
|
||||||
name='description', |
|
||||||
field=models.TextField(blank=True, default='', null=True, verbose_name='备注'), |
|
||||||
), |
|
||||||
migrations.AlterField( |
|
||||||
model_name='order', |
|
||||||
name='actual_download_gift_times', |
|
||||||
field=models.BigIntegerField(default=0, verbose_name='实际赠送的数量'), |
|
||||||
), |
|
||||||
migrations.AlterField( |
|
||||||
model_name='order', |
|
||||||
name='actual_download_times', |
|
||||||
field=models.BigIntegerField(default=0, verbose_name='实际购买的数量'), |
|
||||||
), |
|
||||||
] |
|
@ -1,51 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-04-07 20:21 |
|
||||||
|
|
||||||
from django.conf import settings |
|
||||||
from django.db import migrations, models |
|
||||||
import django.db.models.deletion |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0030_auto_20210329_1755'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.CreateModel( |
|
||||||
name='UserCertificationInfo', |
|
||||||
fields=[ |
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|
||||||
('name', models.CharField(max_length=128, verbose_name='真实姓名')), |
|
||||||
('card', models.CharField(max_length=128, verbose_name='身份证号码')), |
|
||||||
('addr', models.CharField(max_length=128, verbose_name='居住地')), |
|
||||||
('mobile', models.BigIntegerField(unique=True, verbose_name='手机号码')), |
|
||||||
('status', models.SmallIntegerField(choices=[(0, '审核中'), (1, '审核成功'), (2, '审核失败')], 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')), |
|
||||||
], |
|
||||||
options={ |
|
||||||
'verbose_name': '用户认证信息', |
|
||||||
'verbose_name_plural': '用户认证信息', |
|
||||||
}, |
|
||||||
), |
|
||||||
migrations.CreateModel( |
|
||||||
name='CertificationInfo', |
|
||||||
fields=[ |
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|
||||||
('certification_url', models.CharField(blank=True, max_length=128, verbose_name='认证URL')), |
|
||||||
('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': '身份证截图', |
|
||||||
}, |
|
||||||
), |
|
||||||
migrations.AddIndex( |
|
||||||
model_name='usercertificationinfo', |
|
||||||
index=models.Index(fields=['card'], name='api_usercer_card_246743_idx'), |
|
||||||
), |
|
||||||
] |
|
@ -1,19 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-04-07 20:44 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0031_auto_20210407_2021'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='certificationinfo', |
|
||||||
name='type', |
|
||||||
field=models.SmallIntegerField(choices=[(0, '国徽面照片'), (1, '人像面照片'), (2, '手持身份证照片')], default=0, |
|
||||||
verbose_name='图像类型'), |
|
||||||
preserve_default=False, |
|
||||||
), |
|
||||||
] |
|
@ -1,18 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-04-07 20:45 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0032_certificationinfo_type'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterField( |
|
||||||
model_name='certificationinfo', |
|
||||||
name='type', |
|
||||||
field=models.SmallIntegerField(choices=[(0, '未知'), (1, '国徽面照片'), (2, '人像面照片'), (3, '手持身份证照片')], default=0, |
|
||||||
verbose_name='图像类型'), |
|
||||||
), |
|
||||||
] |
|
@ -1,17 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-04-08 18:11 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0033_auto_20210407_2045'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='usercertificationinfo', |
|
||||||
name='msg', |
|
||||||
field=models.CharField(blank=True, max_length=512, null=True, verbose_name='备注'), |
|
||||||
), |
|
||||||
] |
|
@ -1,18 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-04-08 18:29 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0034_usercertificationinfo_msg'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='usercertificationinfo', |
|
||||||
name='reviewed_time', |
|
||||||
field=models.DateTimeField(default='2021-04-08 16:28:28.142887', verbose_name='审核时间'), |
|
||||||
preserve_default=False, |
|
||||||
), |
|
||||||
] |
|
@ -1,20 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-04-09 15:12 |
|
||||||
|
|
||||||
from django.conf import settings |
|
||||||
from django.db import migrations, models |
|
||||||
import django.db.models.deletion |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0035_usercertificationinfo_reviewed_time'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterField( |
|
||||||
model_name='usercertificationinfo', |
|
||||||
name='user_id', |
|
||||||
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='certification', |
|
||||||
to=settings.AUTH_USER_MODEL, verbose_name='用户ID'), |
|
||||||
), |
|
||||||
] |
|
@ -1,37 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-04-12 15:59 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0036_auto_20210409_1512'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='apps', |
|
||||||
name='status', |
|
||||||
field=models.SmallIntegerField(choices=[(0, '正常'), (1, '封禁'), (2, '违规')], default=0, verbose_name='应用状态'), |
|
||||||
), |
|
||||||
migrations.AlterField( |
|
||||||
model_name='apps', |
|
||||||
name='isshow', |
|
||||||
field=models.BooleanField(default=True, verbose_name='下载页可见'), |
|
||||||
), |
|
||||||
migrations.AlterField( |
|
||||||
model_name='apps', |
|
||||||
name='issupersign', |
|
||||||
field=models.BooleanField(default=False, verbose_name='是否超级签名包'), |
|
||||||
), |
|
||||||
migrations.AlterField( |
|
||||||
model_name='apps', |
|
||||||
name='wxeasytype', |
|
||||||
field=models.BooleanField(default=True, verbose_name='微信内简易模式,避免微信封停'), |
|
||||||
), |
|
||||||
migrations.AlterField( |
|
||||||
model_name='apps', |
|
||||||
name='wxredirect', |
|
||||||
field=models.BooleanField(default=True, verbose_name='微信内第三方链接自动跳转'), |
|
||||||
), |
|
||||||
] |
|
@ -1,17 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-04-12 16:01 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0037_auto_20210412_1559'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterField( |
|
||||||
model_name='apps', |
|
||||||
name='status', |
|
||||||
field=models.SmallIntegerField(choices=[(0, '封禁'), (1, '正常'), (2, '违规')], default=1, verbose_name='应用状态'), |
|
||||||
), |
|
||||||
] |
|
@ -1,17 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-04-12 17:59 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0038_auto_20210412_1601'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterField( |
|
||||||
model_name='apps', |
|
||||||
name='password', |
|
||||||
field=models.CharField(blank=True, help_text='默认 没有密码', max_length=32, verbose_name='访问密码'), |
|
||||||
), |
|
||||||
] |
|
@ -1,18 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-04-13 10:10 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0039_auto_20210412_1759'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterField( |
|
||||||
model_name='usercertificationinfo', |
|
||||||
name='status', |
|
||||||
field=models.SmallIntegerField(choices=[(-1, '待认证'), (0, '认证中'), (1, '认证成功'), (2, '认证失败')], default=0, |
|
||||||
verbose_name='审核状态'), |
|
||||||
), |
|
||||||
] |
|
@ -1,19 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-04-16 14:38 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0040_auto_20210413_1010'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterField( |
|
||||||
model_name='order', |
|
||||||
name='status', |
|
||||||
field=models.SmallIntegerField( |
|
||||||
choices=[(0, '交易成功'), (1, '待支付'), (2, '订单已创建'), (3, '退费申请中'), (4, '已退费'), (5, '主动取消'), (6, '超时取消')], |
|
||||||
verbose_name='状态'), |
|
||||||
), |
|
||||||
] |
|
@ -1,17 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-04-18 17:24 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0041_auto_20210416_1438'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='order', |
|
||||||
name='payment_name', |
|
||||||
field=models.CharField(blank=True, max_length=128, null=True, verbose_name='支付商家名称'), |
|
||||||
), |
|
||||||
] |
|
@ -1,49 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-04-20 14:22 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0042_order_payment_name'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.RemoveField( |
|
||||||
model_name='appstorage', |
|
||||||
name='additionalparameters', |
|
||||||
), |
|
||||||
migrations.AddField( |
|
||||||
model_name='appstorage', |
|
||||||
name='cnd_auth_key', |
|
||||||
field=models.CharField(blank=True, max_length=128, null=True, verbose_name='阿里云cnd_auth_key'), |
|
||||||
), |
|
||||||
migrations.AddField( |
|
||||||
model_name='appstorage', |
|
||||||
name='download_auth_type', |
|
||||||
field=models.SmallIntegerField( |
|
||||||
choices=[(1, 'OSS模式: 需要把OSS权限开启私有模式'), (2, 'CDN模式: 请先配置好阿里云CDN,开启阿里云OSS私有Bucket回源,将使用鉴权A方式')], |
|
||||||
default=1, verbose_name='阿里云下载授权方式'), |
|
||||||
), |
|
||||||
migrations.AddField( |
|
||||||
model_name='appstorage', |
|
||||||
name='endpoint', |
|
||||||
field=models.CharField(blank=True, max_length=128, null=True, verbose_name='阿里云endpoint'), |
|
||||||
), |
|
||||||
migrations.AddField( |
|
||||||
model_name='appstorage', |
|
||||||
name='sts_role_arn', |
|
||||||
field=models.CharField(blank=True, max_length=128, null=True, verbose_name='阿里云sts_role_arn'), |
|
||||||
), |
|
||||||
migrations.AlterField( |
|
||||||
model_name='usercertificationinfo', |
|
||||||
name='addr', |
|
||||||
field=models.CharField(max_length=128, verbose_name='居住地址'), |
|
||||||
), |
|
||||||
migrations.AlterField( |
|
||||||
model_name='usercertificationinfo', |
|
||||||
name='status', |
|
||||||
field=models.SmallIntegerField(choices=[(-1, '待认证'), (0, '认证中'), (1, '认证成功'), (2, '认证失败')], default=0, |
|
||||||
verbose_name='认证状态'), |
|
||||||
), |
|
||||||
] |
|
@ -1,17 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-04-22 10:02 |
|
||||||
|
|
||||||
from django.db import migrations |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0043_auto_20210420_1422'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.RenameField( |
|
||||||
model_name='order', |
|
||||||
old_name='account', |
|
||||||
new_name='user_id', |
|
||||||
), |
|
||||||
] |
|
@ -1,22 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-04-23 16:45 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0044_auto_20210422_1002'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterField( |
|
||||||
model_name='usercertificationinfo', |
|
||||||
name='card', |
|
||||||
field=models.CharField(max_length=128, unique=True, verbose_name='身份证号码'), |
|
||||||
), |
|
||||||
migrations.AlterField( |
|
||||||
model_name='usercertificationinfo', |
|
||||||
name='mobile', |
|
||||||
field=models.BigIntegerField(blank=True, null=True, verbose_name='手机号码'), |
|
||||||
), |
|
||||||
] |
|
@ -1,17 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-04-23 16:50 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0045_auto_20210423_1645'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterField( |
|
||||||
model_name='usercertificationinfo', |
|
||||||
name='reviewed_time', |
|
||||||
field=models.DateTimeField(auto_now_add=True, verbose_name='审核时间'), |
|
||||||
), |
|
||||||
] |
|
@ -1,47 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-05-19 10:35 |
|
||||||
|
|
||||||
from django.conf import settings |
|
||||||
from django.db import migrations, models |
|
||||||
import django.db.models.deletion |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0046_auto_20210423_1650'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.CreateModel( |
|
||||||
name='DomainCnameInfo', |
|
||||||
fields=[ |
|
||||||
('domain_record', |
|
||||||
models.CharField(max_length=128, primary_key=True, serialize=False, verbose_name='记录值')), |
|
||||||
('ip_address', models.GenericIPAddressField(verbose_name='域名解析地址')), |
|
||||||
('is_enable', models.BooleanField(default=True, verbose_name='是否启用该解析')), |
|
||||||
('description', models.TextField(blank=True, default='', null=True, verbose_name='备注')), |
|
||||||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), |
|
||||||
], |
|
||||||
options={ |
|
||||||
'verbose_name': '分发域名信息', |
|
||||||
'verbose_name_plural': '分发域名信息', |
|
||||||
}, |
|
||||||
), |
|
||||||
migrations.CreateModel( |
|
||||||
name='UserDomainInfo', |
|
||||||
fields=[ |
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|
||||||
('domain_name', models.CharField(db_index=True, max_length=64, verbose_name='下载页面域名')), |
|
||||||
('is_enable', models.BooleanField(default=False, verbose_name='绑定成功')), |
|
||||||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), |
|
||||||
('cname_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.DomainCnameInfo', |
|
||||||
verbose_name='cname解析ID')), |
|
||||||
('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': {('domain_name', 'is_enable')}, |
|
||||||
}, |
|
||||||
), |
|
||||||
] |
|
@ -1,16 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-05-19 15:53 |
|
||||||
|
|
||||||
from django.db import migrations |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0047_domaincnameinfo_userdomaininfo'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AlterUniqueTogether( |
|
||||||
name='userdomaininfo', |
|
||||||
unique_together=set(), |
|
||||||
), |
|
||||||
] |
|
@ -1,16 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-05-19 16:53 |
|
||||||
|
|
||||||
from django.db import migrations |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0048_auto_20210519_1553'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.RemoveField( |
|
||||||
model_name='userinfo', |
|
||||||
name='domain_name', |
|
||||||
), |
|
||||||
] |
|
@ -1,19 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-05-19 18:15 |
|
||||||
|
|
||||||
from django.db import migrations, models |
|
||||||
import django.db.models.deletion |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0049_remove_userinfo_domain_name'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.AddField( |
|
||||||
model_name='userdomaininfo', |
|
||||||
name='app_id', |
|
||||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='api.Apps', |
|
||||||
verbose_name='APP专属域名'), |
|
||||||
), |
|
||||||
] |
|
@ -1,16 +0,0 @@ |
|||||||
# Generated by Django 3.0.3 on 2021-05-19 21:41 |
|
||||||
|
|
||||||
from django.db import migrations |
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration): |
|
||||||
dependencies = [ |
|
||||||
('api', '0050_userdomaininfo_app_id'), |
|
||||||
] |
|
||||||
|
|
||||||
operations = [ |
|
||||||
migrations.RemoveField( |
|
||||||
model_name='apps', |
|
||||||
name='domain_name', |
|
||||||
), |
|
||||||
] |
|
@ -0,0 +1,92 @@ |
|||||||
|
[ |
||||||
|
{ |
||||||
|
"model": "api.price", |
||||||
|
"pk": 1, |
||||||
|
"fields": { |
||||||
|
"name": "1k_times", |
||||||
|
"title": "1k_times", |
||||||
|
"description": "1k_times", |
||||||
|
"price": 2000, |
||||||
|
"package_size": 1000, |
||||||
|
"download_count_gift": 100, |
||||||
|
"is_enable": true, |
||||||
|
"updated_time": "2021-04-14T17:37:05.512" |
||||||
|
} |
||||||
|
}, |
||||||
|
{ |
||||||
|
"model": "api.price", |
||||||
|
"pk": 2, |
||||||
|
"fields": { |
||||||
|
"name": "10k_times", |
||||||
|
"title": "10k_times", |
||||||
|
"description": "10k_times", |
||||||
|
"price": 20000, |
||||||
|
"package_size": 10000, |
||||||
|
"download_count_gift": 800, |
||||||
|
"is_enable": true, |
||||||
|
"updated_time": "2021-03-30T12:21:17.789" |
||||||
|
} |
||||||
|
}, |
||||||
|
{ |
||||||
|
"model": "api.price", |
||||||
|
"pk": 3, |
||||||
|
"fields": { |
||||||
|
"name": "100k_times", |
||||||
|
"title": "100k_times", |
||||||
|
"description": "100k_times", |
||||||
|
"price": 200000, |
||||||
|
"package_size": 100000, |
||||||
|
"download_count_gift": 3000, |
||||||
|
"is_enable": true, |
||||||
|
"updated_time": "2021-03-29T18:28:31.942" |
||||||
|
} |
||||||
|
}, |
||||||
|
{ |
||||||
|
"model": "api.domaincnameinfo", |
||||||
|
"pk": 1, |
||||||
|
"fields": { |
||||||
|
"domain_record": "d.ashort.top", |
||||||
|
"ip_address": "d.ashort.top.w.kunlunsl.com", |
||||||
|
"is_enable": true, |
||||||
|
"is_system": true, |
||||||
|
"description": "d.ashort.top \u7cfb\u7edf\u81ea\u5e26\u57df\u540d\uff0c\u672a\u5907\u6848\uff0c\u56fd\u5916\u52a0\u901f\uff0c\u7528\u4e0e\u4e0b\u8f7d\u9875\u8df3\u8f6c\u57df\u540d", |
||||||
|
"created_time": "2021-05-21T21:25:33" |
||||||
|
} |
||||||
|
}, |
||||||
|
{ |
||||||
|
"model": "api.domaincnameinfo", |
||||||
|
"pk": 2, |
||||||
|
"fields": { |
||||||
|
"domain_record": "d.bshort.top", |
||||||
|
"ip_address": "d.bshort.top.w.kunlunsl.com", |
||||||
|
"is_enable": true, |
||||||
|
"is_system": true, |
||||||
|
"description": "d.bshort.top \u7cfb\u7edf\u81ea\u5e26\u57df\u540d\uff0c\u672a\u5907\u6848\uff0c\u56fd\u5916\u52a0\u901f\uff0c\u7528\u4e0e\u4e0b\u8f7d\u9875\u8df3\u8f6c\u57df\u540d", |
||||||
|
"created_time": "2021-05-21T21:25:33" |
||||||
|
} |
||||||
|
}, |
||||||
|
{ |
||||||
|
"model": "api.domaincnameinfo", |
||||||
|
"pk": 3, |
||||||
|
"fields": { |
||||||
|
"domain_record": "d.cshort.top", |
||||||
|
"ip_address": "d.cshort.top.w.kunlunsl.com", |
||||||
|
"is_enable": true, |
||||||
|
"is_system": true, |
||||||
|
"description": "d.cshort.top \u7cfb\u7edf\u81ea\u5e26\u57df\u540d\uff0c\u672a\u5907\u6848\uff0c\u56fd\u5916\u52a0\u901f\uff0c\u7528\u4e0e\u4e0b\u8f7d\u9875\u8df3\u8f6c\u57df\u540d", |
||||||
|
"created_time": "2021-05-21T21:25:33" |
||||||
|
} |
||||||
|
}, |
||||||
|
{ |
||||||
|
"model": "api.domaincnameinfo", |
||||||
|
"pk": 4, |
||||||
|
"fields": { |
||||||
|
"domain_record": "d.eshort.top", |
||||||
|
"ip_address": "d.eshort.top.w.kunlunsl.com", |
||||||
|
"is_enable": true, |
||||||
|
"is_system": true, |
||||||
|
"description": "d.eshort.top \u7cfb\u7edf\u81ea\u5e26\u57df\u540d\uff0c\u672a\u5907\u6848\uff0c\u56fd\u5916\u52a0\u901f\uff0c\u7528\u4e0e\u4e0b\u8f7d\u9875\u8df3\u8f6c\u57df\u540d", |
||||||
|
"created_time": "2021-05-21T21:25:33" |
||||||
|
} |
||||||
|
} |
||||||
|
] |
Loading…
Reference in new issue