|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
# Generated by Django 3.2.3 on 2022-03-29 17:36 |
|
|
|
|
# Generated by Django 3.2.3 on 2022-03-30 00:09 |
|
|
|
|
|
|
|
|
|
import django.db.models.deletion |
|
|
|
|
from django.conf import settings |
|
|
|
@ -61,7 +61,7 @@ class Migration(migrations.Migration): |
|
|
|
|
name='NotifyReceiver', |
|
|
|
|
fields=[ |
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|
|
|
|
('receiver_name', models.CharField(max_length=128, unique=True, verbose_name='姓名')), |
|
|
|
|
('receiver_name', models.CharField(max_length=128, verbose_name='姓名')), |
|
|
|
|
('email', models.EmailField(blank=True, max_length=255, null=True, verbose_name='邮箱')), |
|
|
|
|
('description', models.CharField(blank=True, default='', max_length=256, verbose_name='备注')), |
|
|
|
|
('create_time', models.DateTimeField(auto_now_add=True, verbose_name='添加时间')), |
|
|
|
@ -74,14 +74,14 @@ class Migration(migrations.Migration): |
|
|
|
|
options={ |
|
|
|
|
'verbose_name': '信息接收配置', |
|
|
|
|
'verbose_name_plural': '信息接收配置', |
|
|
|
|
'unique_together': {('user_id', 'email'), ('user_id', 'weixin')}, |
|
|
|
|
'unique_together': {('user_id', 'email'), ('user_id', 'weixin'), ('user_id', 'receiver_name')}, |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
migrations.CreateModel( |
|
|
|
|
name='NotifyConfig', |
|
|
|
|
fields=[ |
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|
|
|
|
('config_name', models.CharField(max_length=128, unique=True, verbose_name='通知名称')), |
|
|
|
|
('config_name', models.CharField(max_length=128, verbose_name='通知名称')), |
|
|
|
|
('message_type', models.SmallIntegerField( |
|
|
|
|
choices=[(0, '签名余额不足'), (1, '下载次数不足'), (2, '应用签名限额'), (3, '应用签名失败'), (4, '充值到账提醒'), (5, '优惠活动通知'), |
|
|
|
|
(6, '证书到期消息'), (7, '系统提醒')], default=5, verbose_name='消息类型')), |
|
|
|
@ -96,6 +96,7 @@ class Migration(migrations.Migration): |
|
|
|
|
options={ |
|
|
|
|
'verbose_name': '信息接收配置', |
|
|
|
|
'verbose_name_plural': '信息接收配置', |
|
|
|
|
'unique_together': {('user_id', 'config_name')}, |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
] |