feat: add json table definitions for all models (converted from xlsx)
This commit is contained in:
parent
1dfa144611
commit
b40300ad35
36
models/paychannel.json
Normal file
36
models/paychannel.json
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "paychannel",
|
||||
"title": "支付渠道",
|
||||
"primary": [
|
||||
"id"
|
||||
],
|
||||
"catelog": "entity"
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"title": "支付渠道名称",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "enabled_date",
|
||||
"title": "启用日期",
|
||||
"type": "date"
|
||||
},
|
||||
{
|
||||
"name": "expired_date",
|
||||
"title": "禁用日期",
|
||||
"type": "date"
|
||||
}
|
||||
]
|
||||
}
|
||||
49
models/payfee.json
Normal file
49
models/payfee.json
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "payfee",
|
||||
"title": "支付费率",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "channelid",
|
||||
"title": "支付渠道id",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "fee_rate",
|
||||
"title": "费率",
|
||||
"type": "float",
|
||||
"length": 18
|
||||
},
|
||||
{
|
||||
"name": "enabled_date",
|
||||
"title": "启用日期",
|
||||
"type": "date"
|
||||
},
|
||||
{
|
||||
"name": "expired_date",
|
||||
"title": "停用日期",
|
||||
"type": "date"
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "channelid",
|
||||
"table": "paychannel",
|
||||
"valuefield": "id",
|
||||
"textfield": "name"
|
||||
}
|
||||
]
|
||||
}
|
||||
141
models/payment_log.json
Normal file
141
models/payment_log.json
Normal file
@ -0,0 +1,141 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "payment_log",
|
||||
"title": "支付日志",
|
||||
"primary": [
|
||||
"id"
|
||||
],
|
||||
"catelog": "entity"
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "customerid",
|
||||
"title": "客户id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "channelid",
|
||||
"title": "支付渠道id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "channel_trade_id",
|
||||
"title": "支付渠道交易ID",
|
||||
"type": "str",
|
||||
"length": 256
|
||||
},
|
||||
{
|
||||
"name": "payment_name",
|
||||
"title": "支付名称",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "amount_total",
|
||||
"title": "支付金额",
|
||||
"type": "float",
|
||||
"length": 20
|
||||
},
|
||||
{
|
||||
"name": "pay_feerate",
|
||||
"title": "支付费率",
|
||||
"type": "float",
|
||||
"length": 20
|
||||
},
|
||||
{
|
||||
"name": "pay_fee",
|
||||
"title": "支付费用",
|
||||
"type": "float",
|
||||
"length": 20
|
||||
},
|
||||
{
|
||||
"name": "payer_client_ip",
|
||||
"title": "支付客户ip",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "currency",
|
||||
"title": "币种",
|
||||
"type": "str",
|
||||
"length": 10
|
||||
},
|
||||
{
|
||||
"name": "payment_status",
|
||||
"title": "支付状态",
|
||||
"type": "str",
|
||||
"length": 1
|
||||
},
|
||||
{
|
||||
"name": "init_timestamp",
|
||||
"title": "支付发起时点",
|
||||
"type": "timestamp"
|
||||
},
|
||||
{
|
||||
"name": "payed_timestamp",
|
||||
"title": "支付完成时点",
|
||||
"type": "timestamp"
|
||||
},
|
||||
{
|
||||
"name": "cancel_timestamp",
|
||||
"title": "支付取消时点",
|
||||
"type": "timestamp"
|
||||
},
|
||||
{
|
||||
"name": "userid",
|
||||
"title": "支付操作用户id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "origin_id",
|
||||
"title": "原支付id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "currency",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='currency'"
|
||||
},
|
||||
{
|
||||
"field": "payment_status",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='payment_status'"
|
||||
},
|
||||
{
|
||||
"field": "customerid",
|
||||
"table": "organization",
|
||||
"valuefield": "id",
|
||||
"textfield": "orgname"
|
||||
},
|
||||
{
|
||||
"field": "channelid",
|
||||
"table": "paychannel",
|
||||
"valuefield": "id",
|
||||
"textfield": "name"
|
||||
},
|
||||
{
|
||||
"field": "userid",
|
||||
"table": "users",
|
||||
"valuefield": "id",
|
||||
"textfield": "username"
|
||||
}
|
||||
]
|
||||
}
|
||||
62
models/transfercode.json
Normal file
62
models/transfercode.json
Normal file
@ -0,0 +1,62 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "transfercode",
|
||||
"title": "转账码",
|
||||
"primary": [
|
||||
"id"
|
||||
],
|
||||
"catelog": "entity"
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "customerid",
|
||||
"title": "客户id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "amount",
|
||||
"title": "金额",
|
||||
"type": "float",
|
||||
"length": 20
|
||||
},
|
||||
{
|
||||
"name": "tcode",
|
||||
"title": "转账码",
|
||||
"type": "str",
|
||||
"length": 7
|
||||
},
|
||||
{
|
||||
"name": "curtime",
|
||||
"title": "发起时间",
|
||||
"type": "timestamp"
|
||||
},
|
||||
{
|
||||
"name": "curdate",
|
||||
"title": "发起日期",
|
||||
"type": "date"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"title": "状态",
|
||||
"type": "str",
|
||||
"length": 1
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "customerid",
|
||||
"table": "organization",
|
||||
"valuefield": "id",
|
||||
"textfield": "orgname"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user