rename opendb-base-order to uni-id-base-order

This commit is contained in:
handongxun 2020-09-03 10:47:29 +08:00
parent eecf6e63d0
commit ee4bde1b9c
4 changed files with 168 additions and 167 deletions

View File

@ -1,164 +0,0 @@
{
"schema": {
"bsonType": "object",
"required": [],
"properties": {
"_id": {
"description": "存储文档 ID统一订单 ID系统自动生成"
},
"title": {
"bsonType": "string",
"description": "商品标题"
},
"type": {
"bsonType": "string",
"description": "订单类型,如商品订单,会员订单,充值订单等"
},
"pay_type": {
"bsonType": "string",
"description": "支付渠道wxpay | alipay"
},
"total_fee": {
"bsonType": "int",
"description": "订单总金额,单位:分。"
},
"user_id": {
"bsonType": "String",
"description": "下单用户IDuni-id-users表"
},
"platform": {
"bsonType": "String",
"description": "下单平台类型h5、mp-weixin、mp-alipay、app-plus等"
},
// "uni_appid": { //
// "bsonType": "String",
// "description": "uni-app项目的appid"
// },
"status": {
"bsonType": "int",
"minimum": -3,
"maximum": 5,
"description": "订单状态1待付款2已付款3退款审核中4退款中5已退款-1已取消付款/退款,-2退款拒绝-3退款失败"
},
"is_refund": {
"bsonType": "boolean",
"description": "是否是退款订单"
},
"refund_amount": {
"bsonType": "float",
"description": "退款金额(非退款订单表示已退款总金额,退款订单表示该笔退款的退款金额),单位:元"
},
"refund_count": {
"bsonType": "int",
"description": "总退款笔数(非退款订单有值)"
},
"create_time": {
"bsonType": "timestamp",
"description": "订单创建时间/发起退款时间"
},
"update_time": {
"bsonType": "timestamp",
"description": "订单更新时间"
},
"paid_time": {
"bsonType": "timestamp",
"description": "订单付款时间"
},
"refund_time": {
"bsonType": "timestamp",
"description": "订单完成退款时间"
},
"refund_desc": {
"bsonType": "String",
"description": "退款原因"
},
"transaction_id": {
"bsonType": "String",
"description": "微信或支付宝交易单号"
},
"info": {
"bsonType": "string",
"description": "自定义的订单拓展信息,如商品信息、会员卡种类信息等"
}
}
},
"data": [],
"index": [{
"IndexName": "type",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "type",
"Direction": "1"
}],
"MgoIsUnique": false
}
}, {
"IndexName": "userId",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "userId",
"Direction": "1"
}],
"MgoIsUnique": false
}
}, {
"IndexName": "payType",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "payType",
"Direction": "1"
}],
"MgoIsUnique": false
}
},
{
"IndexName": "status",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "status",
"Direction": "1"
}],
"MgoIsUnique": false
}
},
{
"IndexName": "refundStatus",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "refundStatus",
"Direction": "1"
}],
"MgoIsUnique": false
}
},
{
"IndexName": "isRefund",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "isRefund",
"Direction": "1"
}],
"MgoIsUnique": false
}
},
{
"IndexName": "transactionId",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "transactionId",
"Direction": "1"
}],
"MgoIsUnique": false
}
},
{
"IndexName": "createTime",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "createTime",
"Direction": "1"
}],
"MgoIsUnique": false
}
}]
}

View File

@ -0,0 +1,165 @@
{
"schema": {
"bsonType": "object",
"required": [],
"properties": {
"_id": {
"description": "存储文档 ID统一订单 ID系统自动生成"
},
"title": {
"bsonType": "string",
"description": "商品标题"
},
"type": {
"bsonType": "string",
"description": "订单类型,如商品订单,会员订单,充值订单等"
},
"pay_type": {
"bsonType": "string",
"description": "支付渠道wxpay | alipay"
},
"total_fee": {
"bsonType": "int",
"description": "订单总金额,单位:分。"
},
"user_id": {
"bsonType": "String",
"description": "下单用户IDuni-id-users表"
},
"platform": {
"bsonType": "String",
"description": "下单平台类型h5、mp-weixin、mp-alipay、app-plus等"
},
// "uni_appid": { //
// "bsonType": "String",
// "description": "uni-app项目的appid"
// },
"status": {
"bsonType": "int",
"minimum": -3,
"maximum": 5,
"description": "订单状态1待付款2已付款3退款审核中4退款中5已退款-1已取消付款/退款,-2退款拒绝-3退款失败"
},
"is_refund": {
"bsonType": "boolean",
"description": "是否是退款订单"
},
"refund_amount": {
"bsonType": "float",
"description": "退款金额(非退款订单表示已退款总金额,退款订单表示该笔退款的退款金额),单位:元"
},
"refund_count": {
"bsonType": "int",
"description": "总退款笔数(非退款订单有值)"
},
"create_time": {
"bsonType": "timestamp",
"description": "订单创建时间/发起退款时间"
},
"update_time": {
"bsonType": "timestamp",
"description": "订单更新时间"
},
"paid_time": {
"bsonType": "timestamp",
"description": "订单付款时间"
},
"refund_time": {
"bsonType": "timestamp",
"description": "订单完成退款时间"
},
"refund_desc": {
"bsonType": "String",
"description": "退款原因"
},
"transaction_id": {
"bsonType": "String",
"description": "微信或支付宝交易单号"
},
"info": {
"bsonType": "string",
"description": "自定义的订单拓展信息,如商品信息、会员卡种类信息等"
}
}
},
"data": [],
"index": [{
"IndexName": "type",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "type",
"Direction": "1"
}],
"MgoIsUnique": false
}
}, {
"IndexName": "userId",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "userId",
"Direction": "1"
}],
"MgoIsUnique": false
}
}, {
"IndexName": "payType",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "payType",
"Direction": "1"
}],
"MgoIsUnique": false
}
},
{
"IndexName": "status",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "status",
"Direction": "1"
}],
"MgoIsUnique": false
}
},
{
"IndexName": "refundStatus",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "refundStatus",
"Direction": "1"
}],
"MgoIsUnique": false
}
},
{
"IndexName": "isRefund",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "isRefund",
"Direction": "1"
}],
"MgoIsUnique": false
}
},
{
"IndexName": "transactionId",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "transactionId",
"Direction": "1"
}],
"MgoIsUnique": false
}
},
{
"IndexName": "createTime",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "createTime",
"Direction": "1"
}],
"MgoIsUnique": false
}
}
]
}

View File

@ -1,5 +1,5 @@
{ {
"name": "@opendb/opendb-base-order", "name": "@opendb/uni-id-base-order",
"version": "0.0.1", "version": "0.0.1",
"description": "统一订单数据表,完成与支付相关的业务", "description": "统一订单数据表,完成与支付相关的业务",
"keywords": ["base-order", "统一订单","大订单","跨平台", "多应用","支付宝","微信","退款","支付"], "keywords": ["base-order", "统一订单","大订单","跨平台", "多应用","支付宝","微信","退款","支付"],

View File

@ -1,7 +1,7 @@
{ {
"uni-id-users": {}, "uni-id-users": {},
"opendb-base-order":{},
"uni-id-address": {}, "uni-id-address": {},
"uni-id-device": {}, "uni-id-device": {},
"uni-id-log": {} "uni-id-log": {},
"uni-id-base-order":{}
} }