feat: 俱乐部订单单向互通抢单(集团配置 + 接单池/抢单校验)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
35
jituan/migrations/0016_club_order_grab_link.py
Normal file
35
jituan/migrations/0016_club_order_grab_link.py
Normal file
@@ -0,0 +1,35 @@
|
||||
# Generated manually for ClubOrderGrabLink
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('jituan', '0015_club_recharge_page_copy'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='ClubOrderGrabLink',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('grabber_club_id', models.CharField(db_index=True, max_length=16, verbose_name='抢单方俱乐部')),
|
||||
('order_club_id', models.CharField(db_index=True, max_length=16, verbose_name='被抢订单所属俱乐部')),
|
||||
('CreateTime', models.DateTimeField(auto_now_add=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': '俱乐部订单互通抢单',
|
||||
'db_table': 'club_order_grab_link',
|
||||
'unique_together': {('grabber_club_id', 'order_club_id')},
|
||||
},
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='clubordergrablink',
|
||||
index=models.Index(fields=['grabber_club_id'], name='idx_cogl_grabber'),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='clubordergrablink',
|
||||
index=models.Index(fields=['order_club_id'], name='idx_cogl_order'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user