You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
2.6 KiB
49 lines
2.6 KiB
# Generated by Django 3.0.3 on 2020-04-25 15:30
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('api', '0031_appudid_is_signed'),
|
|
]
|
|
|
|
operations = [
|
|
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')),
|
|
('udid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.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='AppIOSDeveloperInfo',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=64, unique=True, verbose_name='存储名字')),
|
|
('email', models.EmailField(blank=True, max_length=64, null=True, unique=True, verbose_name='email address')),
|
|
('password', models.CharField(max_length=64)),
|
|
('is_actived', models.BooleanField(default=False, verbose_name='是否已经激活')),
|
|
('usable_number', models.IntegerField(default=100, verbose_name='可使用设备数')),
|
|
('use_number', models.IntegerField(default=0, verbose_name='已消耗设备数')),
|
|
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
|
|
('updated_time', models.DateTimeField(auto_now=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': '苹果开发者账户',
|
|
},
|
|
),
|
|
]
|
|
|