Files
Django/jituan/migrations/0014_club_mini_pay_channel_and_ledger.py
XingQue 5762f00d40 feat: 分俱乐部付呗收款通道,默认仍走微信直连
小程序前端仍传 wechat;后台可切换 wechat/fubei,支持配置多套付呗并退款按原通道路由。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-21 20:02:24 +08:00

42 lines
1.8 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jituan', '0013_club_pay_withdraw_split'),
]
operations = [
migrations.AddField(
model_name='club',
name='mini_pay_channel',
field=models.CharField(
blank=True,
default='wechat',
help_text='wechat=微信直连fubei=付呗;默认 wechat不影响现网',
max_length=16,
verbose_name='小程序收款通道',
),
),
migrations.CreateModel(
name='PayChannelLedger',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('out_trade_no', models.CharField(db_index=True, max_length=64, unique=True, verbose_name='商户订单号')),
('club_id', models.CharField(db_index=True, default='', max_length=16)),
('channel', models.CharField(db_index=True, max_length=32, verbose_name='通道')),
('channel_config_id', models.IntegerField(blank=True, null=True)),
('biz_type', models.CharField(blank=True, default='', max_length=16, verbose_name='order/czjilu')),
('provider_order_sn', models.CharField(blank=True, default='', max_length=64, verbose_name='通道侧订单号')),
('amount_yuan', models.DecimalField(decimal_places=2, default=0, max_digits=12)),
('CreateTime', models.DateTimeField(auto_now_add=True)),
('UpdateTime', models.DateTimeField(auto_now=True)),
],
options={
'verbose_name': '支付通道流水',
'db_table': 'pay_channel_ledger',
},
),
]