feat: 公告按页、身份标签、拼多多订单号、派单与抢单改造
This commit is contained in:
56
jituan/migrations/0005_identity_tag.py
Normal file
56
jituan/migrations/0005_identity_tag.py
Normal file
@@ -0,0 +1,56 @@
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('jituan', '0004_kefu_menu_page'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='IdentityTag',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('club_id', models.CharField(db_index=True, max_length=16)),
|
||||
('name', models.CharField(max_length=64, verbose_name='标签名')),
|
||||
('color', models.CharField(default='#000000', max_length=32, verbose_name='主色')),
|
||||
('flash_enabled', models.BooleanField(default=False, verbose_name='闪光特效')),
|
||||
('texiao_json', models.TextField(blank=True, default='', verbose_name='特效JSON')),
|
||||
('sort_order', models.IntegerField(default=0)),
|
||||
('status', models.IntegerField(default=1, verbose_name='1启用0停用')),
|
||||
('CreateTime', models.DateTimeField(auto_now_add=True)),
|
||||
('UpdateTime', models.DateTimeField(auto_now=True)),
|
||||
],
|
||||
options={
|
||||
'db_table': 'identity_tag',
|
||||
'ordering': ['sort_order', 'id'],
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='IdentityTagBind',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('club_id', models.CharField(db_index=True, max_length=16)),
|
||||
('yonghuid', models.CharField(db_index=True, max_length=7)),
|
||||
('shenfen', models.IntegerField(verbose_name='1打手2管事3商家4组长')),
|
||||
('CreateTime', models.DateTimeField(auto_now_add=True)),
|
||||
('tag', models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name='binds', to='jituan.identitytag',
|
||||
)),
|
||||
],
|
||||
options={
|
||||
'db_table': 'identity_tag_bind',
|
||||
},
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='identitytagbind',
|
||||
index=models.Index(fields=['club_id', 'yonghuid', 'shenfen'], name='identity_tag_bind_lookup'),
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='identitytagbind',
|
||||
unique_together={('club_id', 'yonghuid', 'shenfen', 'tag')},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user