From 567ebc351c4d0f9d9a11abea1557976f56fcdee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=87=E6=9C=9D=E5=86=9B?= Date: Fri, 25 Feb 2022 15:43:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=95=86=E5=9F=8E=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E8=A1=A8=EF=BC=8C=E7=94=A8=E6=88=B7=E4=BD=99=E9=A2=9D?= =?UTF-8?q?=EF=BC=8C=E7=94=A8=E6=88=B7=E7=A7=AF=E5=88=86=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collection/opendb-mall-cart/collection.json | 79 +++++++++++ collection/opendb-mall-cart/package.json | 15 +++ .../opendb-mall-express/collection.json | 67 ++++++++++ collection/opendb-mall-express/package.json | 15 +++ .../opendb-mall-goods-days/collection.json | 125 ++++++++++++++++++ .../opendb-mall-goods-days/package.json | 15 +++ .../collection.json | 36 +++++ .../opendb-mall-goods-favorite/package.json | 15 +++ .../collection.json | 42 ++++++ .../package.json | 15 +++ .../opendb-mall-goods-visite/collection.json | 37 ++++++ .../opendb-mall-goods-visite/package.json | 15 +++ .../opendb-news-article-read/collection.json | 47 +++++++ .../opendb-news-article-read/package.json | 15 +++ collection/uni-id-balances/collection.json | 44 ++++++ collection/uni-id-balances/package.json | 15 +++ collection/uni-id-channel/collection.json | 95 +++++++++++++ collection/uni-id-channel/package.json | 15 +++ .../uni-id-score-cashout/collection.json | 47 +++++++ collection/uni-id-score-cashout/package.json | 15 +++ .../collection.json | 46 +++++++ .../uni-id-score-day-statistics/package.json | 15 +++ .../uni-id-score-transfer/collection.json | 50 +++++++ collection/uni-id-score-transfer/package.json | 15 +++ 24 files changed, 895 insertions(+) create mode 100644 collection/opendb-mall-cart/collection.json create mode 100644 collection/opendb-mall-cart/package.json create mode 100644 collection/opendb-mall-express/collection.json create mode 100644 collection/opendb-mall-express/package.json create mode 100644 collection/opendb-mall-goods-days/collection.json create mode 100644 collection/opendb-mall-goods-days/package.json create mode 100644 collection/opendb-mall-goods-favorite/collection.json create mode 100644 collection/opendb-mall-goods-favorite/package.json create mode 100644 collection/opendb-mall-goods-group-buying/collection.json create mode 100644 collection/opendb-mall-goods-group-buying/package.json create mode 100644 collection/opendb-mall-goods-visite/collection.json create mode 100644 collection/opendb-mall-goods-visite/package.json create mode 100644 collection/opendb-news-article-read/collection.json create mode 100644 collection/opendb-news-article-read/package.json create mode 100644 collection/uni-id-balances/collection.json create mode 100644 collection/uni-id-balances/package.json create mode 100644 collection/uni-id-channel/collection.json create mode 100644 collection/uni-id-channel/package.json create mode 100644 collection/uni-id-score-cashout/collection.json create mode 100644 collection/uni-id-score-cashout/package.json create mode 100644 collection/uni-id-score-day-statistics/collection.json create mode 100644 collection/uni-id-score-day-statistics/package.json create mode 100644 collection/uni-id-score-transfer/collection.json create mode 100644 collection/uni-id-score-transfer/package.json diff --git a/collection/opendb-mall-cart/collection.json b/collection/opendb-mall-cart/collection.json new file mode 100644 index 0000000..ff372d3 --- /dev/null +++ b/collection/opendb-mall-cart/collection.json @@ -0,0 +1,79 @@ +{ + "bsonType": "object", + "required": ["goods_id", "sku_id", "amount"], + "permission": { + "read": true, + "create": true, + "update": "doc.user_id == auth.uid", + "delete": "doc.user_id == auth.uid" + }, + "properties": { + "_id": { + "description": "存储文档 ID(SKU ID),系统自动生成" + }, + "goods_id": { + "bsonType": "string", + "description": "商品 id,参考 opendb-mall-goods 表", + "foreignKey": "opendb-mall-goods._id" + }, + "goods_name": { + "bsonType": "string", + "description": "商品名称" + }, + "sku_id": { + "bsonType": "string", + "description": "SKU ID", + "foreignKey": "opendb-mall-sku._id" + }, + "sku_name": { + "bsonType": "string", + "description": "SKU名称,多个组合>" + }, + "price": { + "bsonType": "int", + "description": "价格/规格价格,以分为单位,避免浮点计算的精度问题" + }, + "shop_id": { + "bsonType": "string", + "title": "店铺", + "foreignKey": "tian-mall-shops._id" + }, + "market_price": { + "bsonType": "int", + "description": "市场价,以分为单位,避免浮点计算的精度问题" + }, + "goods_thumb": { + "bsonType": "string", + "description": "商品缩略图,加入购物车时候的商品图、型号图,防止商品删除", + "title": "缩略图地址", + "pattern": "^(http:\/\/|https:\/\/|\/|.\/|@\/)\\S", + "trim": "both" + }, + "amount": { + "bsonType": "int", + "description": "数量" + }, + "create_date": { + "bsonType": "timestamp", + "description": "创建时间", + "defaultValue": { + "$env": "now" + } + }, + "update_date": { + "bsonType": "timestamp", + "description": "修改时间", + "defaultValue": { + "$env": "now" + } + }, + "user_id": { + "bsonType": "string", + "description": "用户uid,参考 uni-id-users 表", + "foreignKey": "uni-id-users._id", + "defaultValue": { + "$env": "uid" + } + } + } +} diff --git a/collection/opendb-mall-cart/package.json b/collection/opendb-mall-cart/package.json new file mode 100644 index 0000000..216b6f8 --- /dev/null +++ b/collection/opendb-mall-cart/package.json @@ -0,0 +1,15 @@ +{ + "name": "@opendb/opendb-mall-cart", + "version": "0.0.1", + "description": "商城购物车", + "keywords": ["商城", "购物车"], + "opendb": { + "title": "商城购物车", + "type": "collection", + "contributors": [{ + "name": "cqsort.com", + "email": "343169893@qq.com", + "homepage": "https://ext.dcloud.net.cn/plugin?id=4763" + }] + } +} diff --git a/collection/opendb-mall-express/collection.json b/collection/opendb-mall-express/collection.json new file mode 100644 index 0000000..0488f94 --- /dev/null +++ b/collection/opendb-mall-express/collection.json @@ -0,0 +1,67 @@ +// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema +{ + "name": "", + "bsonType": "object", + "required": [], + "permission": { + "read": true, + "create": false, + "update": false, + "delete": false + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "name": { + "bsonType": "string", + "title": "名称" + }, + "type": { + "bsonType": "string", + "title": "类型", + "enum": [{ + "text": "数量", + "value": "amount" + }, { + "text": "重量", + "value": "weight" + }] + }, + "configs": { + "bsonType": "object", + "properties": { + "is_default": { + "bsonType": "bool" + }, + "first_money": { + "bsonType": "int", + "title": "首费、分" + }, + "first_amount": { + "bsonType": "int", + "title": "首重/首件" + }, + "per_amount": { + "bsonType": "int", + "title": "续重" + }, + "per_money": { + "bsonType": "int", + "title": "续费、分" + }, + "regions": { + "bsonType": "array" + } + } + }, + "create_date": { + "bsonType": "timestamp", + "description": "创建时间" + }, + "update_date": { + "bsonType": "timestamp", + "description": "修改时间" + } + } +} diff --git a/collection/opendb-mall-express/package.json b/collection/opendb-mall-express/package.json new file mode 100644 index 0000000..0334bfb --- /dev/null +++ b/collection/opendb-mall-express/package.json @@ -0,0 +1,15 @@ +{ + "name": "@opendb/opendb-mall-express", + "version": "0.0.1", + "description": "商城快递模板", + "keywords": ["商城", "快递模板"], + "opendb": { + "title": "商城快递模板", + "type": "collection", + "contributors": [{ + "name": "cqsort.com", + "email": "343169893@qq.com", + "homepage": "https://ext.dcloud.net.cn/plugin?id=4763" + }] + } +} diff --git a/collection/opendb-mall-goods-days/collection.json b/collection/opendb-mall-goods-days/collection.json new file mode 100644 index 0000000..a09a4e7 --- /dev/null +++ b/collection/opendb-mall-goods-days/collection.json @@ -0,0 +1,125 @@ +{ + "schema": { + "bsonType": "object", + "required": ["goods_sn", "name", "remain_count", "month_sell_count", "total_sell_count", "comment_count", "is_real", "is_on_sale", "is_alone_sale", "is_best", "is_new", "is_hot"], + "permission": { + "read": "doc.is_on_sale == true", + "create": false, + "update": false, + "delete": false + }, + "properties": { + "_id": { + "description": "存储文档 ID(商品 ID),系统自动生成" + }, + "category_id": { + "bsonType": "string", + "description": "分类 id,参考`opendb-mall-categories`表", + "foreignKey":"opendb-mall-categories._id" + }, + "goods_sn": { + "bsonType": "string", + "description": "商品的唯一货号", + "title": "货号", + "trim":"both" + }, + "name": { + "bsonType": "string", + "description": "商品名称", + "title": "名称", + "trim":"both" + }, + "keywords": { + "bsonType": "string", + "description": "商品关键字,为搜索引擎收录使用", + "title": "关键字", + "trim":"both" + }, + "goods_desc": { + "bsonType": "string", + "description": "商品详细描述", + "title": "详细描述", + "trim":"both" + }, + "goods_thumb": { + "bsonType": "string", + "description": "商品缩略图,用于在列表或搜索结果中预览显示", + "title": "缩略图地址", + "pattern": "^(http://|https://|/|./|@/)\\S", + "trim":"both" + }, + "goods_banner_imgs": { + "bsonType": "array", + "description": "商品详情页的banner图地址" + }, + "remain_count": { + "bsonType": "int", + "description": "库存数量", + "title": "库存数量" + }, + "month_sell_count": { + "bsonType": "int", + "description": "月销量" + }, + "total_sell_count": { + "bsonType": "int", + "description": "总销量" + }, + "comment_count": { + "bsonType": "int", + "description": "累计评论数" + }, + "is_real": { + "bsonType": "bool", + "description": "是否实物", + "title": "是否为实物" + }, + "is_on_sale": { + "bsonType": "bool", + "description": "是否上架销售", + "title": "是否上架" + }, + "is_alone_sale": { + "bsonType": "bool", + "description": "是否能单独销售;如果不能单独销售,则只能作为某商品的配件或者赠品销售" + }, + "is_best": { + "bsonType": "bool", + "description": "是否精品" + }, + "is_new": { + "bsonType": "bool", + "description": "是否新品", + "title": "是否新品" + }, + "is_hot": { + "bsonType": "bool", + "description": "是否热销" + }, + "add_date": { + "bsonType": "timestamp", + "description": "上架时间", + "defaultValue": { + "$env": "now" + } + }, + "last_modify_date": { + "bsonType": "timestamp", + "description": "最后修改时间", + "defaultValue": { + "$env": "now" + } + }, + "seller_note": { + "bsonType": "string", + "description": "商家备注,仅商家可见", + "trim":"both", + "permission": { + "read": false + } + } + } + }, + "data": [], + "index": [] +} diff --git a/collection/opendb-mall-goods-days/package.json b/collection/opendb-mall-goods-days/package.json new file mode 100644 index 0000000..9287004 --- /dev/null +++ b/collection/opendb-mall-goods-days/package.json @@ -0,0 +1,15 @@ +{ + "name": "@opendb/opendb-mall-goods-days", + "version": "0.0.1", + "description": "opendb-mall-goods-days", + "keywords": ["电商系统", "商品每日统计"], + "opendb": { + "title": "商品每日统计", + "type": "collection", + "contributors": [{ + "name": "cqsort.com", + "email": "343169893@qq.com", + "homepage": "https://ext.dcloud.net.cn/plugin?id=4763" + }] + } +} diff --git a/collection/opendb-mall-goods-favorite/collection.json b/collection/opendb-mall-goods-favorite/collection.json new file mode 100644 index 0000000..f8e87f7 --- /dev/null +++ b/collection/opendb-mall-goods-favorite/collection.json @@ -0,0 +1,36 @@ +{ + "bsonType": "object", + "required": [], + "permission": { + "read": "doc.user_id == auth.uid", + "create": "doc.user_id == auth.uid", + "update": "doc.user_id == auth.uid", + "delete": "doc.user_id == auth.uid" + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "goods_id": { + "bsonType": "string", + "description": "商品 id,参考 opendb-mall-goods 表", + "foreignKey": "opendb-mall-goods._id" + }, + "user_id": { + "bsonType": "string", + "description": "评论者的uid,参考 uni-id-users 表", + "foreignKey": "uni-id-users._id", + "defaultValue": { + "$env": "uid" + } + }, + "create_date": { + "bsonType": "timestamp", + "description": "创建时间" + }, + "update_date": { + "bsonType": "timestamp", + "description": "修改时间" + } + } +} diff --git a/collection/opendb-mall-goods-favorite/package.json b/collection/opendb-mall-goods-favorite/package.json new file mode 100644 index 0000000..5c7c0f7 --- /dev/null +++ b/collection/opendb-mall-goods-favorite/package.json @@ -0,0 +1,15 @@ +{ + "name": "@opendb/opendb-mall-goods-favorite", + "version": "0.0.1", + "description": "商城商品收藏", + "keywords": ["商城", "商品收藏"], + "opendb": { + "title": "商城商品收藏", + "type": "collection", + "contributors": [{ + "name": "cqsort.com", + "email": "343169893@qq.com", + "homepage": "https://ext.dcloud.net.cn/plugin?id=4763" + }] + } +} diff --git a/collection/opendb-mall-goods-group-buying/collection.json b/collection/opendb-mall-goods-group-buying/collection.json new file mode 100644 index 0000000..921acb3 --- /dev/null +++ b/collection/opendb-mall-goods-group-buying/collection.json @@ -0,0 +1,42 @@ +// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema +{ + "bsonType": "object", + "required": [], + "permission": { + "read": true, + "create": false, + "update": false, + "delete": false + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "goods_id": { + "bsonType": "string", + "title": "商品" + }, + "group_id": { + "bsonType": "string", + "title": "分组id" + }, + "order_id": { + "bsonType": "string", + "title": "订单" + }, + "user_id": { + "bsonType": "string", + "title": "用户", + "description": "用户", + "foreignKey": "uni-id-users._id" + }, + "create_time": { + "bsonType": "timestamp", + "title": "创建时间" + }, + "end_time": { + "bsonType": "timestamp", + "title": "结束时间" + } + } +} diff --git a/collection/opendb-mall-goods-group-buying/package.json b/collection/opendb-mall-goods-group-buying/package.json new file mode 100644 index 0000000..6e664fa --- /dev/null +++ b/collection/opendb-mall-goods-group-buying/package.json @@ -0,0 +1,15 @@ +{ + "name": "@opendb/opendb-mall-goods-group-buying", + "version": "0.0.1", + "description": "商城商品团购", + "keywords": ["商城", "商品团购"], + "opendb": { + "title": "商城商品团购", + "type": "collection", + "contributors": [{ + "name": "cqsort.com", + "email": "343169893@qq.com", + "homepage": "https://ext.dcloud.net.cn/plugin?id=4763" + }] + } +} diff --git a/collection/opendb-mall-goods-visite/collection.json b/collection/opendb-mall-goods-visite/collection.json new file mode 100644 index 0000000..e482314 --- /dev/null +++ b/collection/opendb-mall-goods-visite/collection.json @@ -0,0 +1,37 @@ +// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema +{ + "bsonType": "object", + "required": [], + "permission": { + "read": "doc.user_id == auth.uid", + "create": "doc.user_id == auth.uid", + "update": "doc.user_id == auth.uid", + "delete": "doc.user_id == auth.uid" + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "goods_id": { + "bsonType": "string", + "description": "商品 id,参考 opendb-mall-goods 表", + "foreignKey": "opendb-mall-goods._id" + }, + "user_id": { + "bsonType": "string", + "description": "uid,参考 uni-id-users 表", + "foreignKey": "uni-id-users._id", + "defaultValue": { + "$env": "uid" + } + }, + "create_date": { + "bsonType": "timestamp", + "description": "创建时间" + }, + "update_date": { + "bsonType": "timestamp", + "description": "修改时间" + } + } +} diff --git a/collection/opendb-mall-goods-visite/package.json b/collection/opendb-mall-goods-visite/package.json new file mode 100644 index 0000000..6d9c304 --- /dev/null +++ b/collection/opendb-mall-goods-visite/package.json @@ -0,0 +1,15 @@ +{ + "name": "@opendb/opendb-mall-goods-visite", + "version": "0.0.1", + "description": "商城商品浏览记录", + "keywords": ["商城", "商品浏览记录"], + "opendb": { + "title": "商城商品浏览记录", + "type": "collection", + "contributors": [{ + "name": "cqsort.com", + "email": "343169893@qq.com", + "homepage": "https://ext.dcloud.net.cn/plugin?id=4763" + }] + } +} diff --git a/collection/opendb-news-article-read/collection.json b/collection/opendb-news-article-read/collection.json new file mode 100644 index 0000000..65cf884 --- /dev/null +++ b/collection/opendb-news-article-read/collection.json @@ -0,0 +1,47 @@ +// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema +{ + "bsonType": "object", + "required": [], + "permission": { + "read": false, + "create": false, + "update": false, + "delete": false + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "article_id": { + "bsonType": "string", + "description": "文章ID,opendb-news-posts 表中的`_id`字段", + "foreignKey": "opendb-news-articles._id" + }, + "user_id": { + "bsonType": "string", + "description": "用户ID,参考`uni-id-users` 表", + "forceDefaultValue": { + "$env": "uid" + }, + "foreignKey": "uni-id-users._id" + }, + "read_ip": { + "bsonType": "string", + "description": "浏览时 IP 地址", + "forceDefaultValue": { + "$env": "clientIP" + } + }, + "getdouble": { + "bsonType": "bool", + "description": "是否获得双倍" + }, + "create_date": { + "bsonType": "timestamp", + "description": "浏览时间", + "forceDefaultValue": { + "$env": "now" + } + } + } +} diff --git a/collection/opendb-news-article-read/package.json b/collection/opendb-news-article-read/package.json new file mode 100644 index 0000000..4bff168 --- /dev/null +++ b/collection/opendb-news-article-read/package.json @@ -0,0 +1,15 @@ +{ + "name": "@opendb/opendb-news-article-read", + "version": "0.0.1", + "description": "文章阅读记录", + "keywords": ["文章阅读记录"], + "opendb": { + "title": "文章阅读记录", + "type": "collection", + "contributors": [{ + "name": "cqsort.com", + "email": "343169893@qq.com", + "homepage": "https://ext.dcloud.net.cn/plugin?id=4763" + }] + } +} diff --git a/collection/uni-id-balances/collection.json b/collection/uni-id-balances/collection.json new file mode 100644 index 0000000..18997a2 --- /dev/null +++ b/collection/uni-id-balances/collection.json @@ -0,0 +1,44 @@ +{ + "bsonType": "object", + "required": ["user_id", "amount", "balance"], + "permission": { + "read": true, + "create": false, + "update": false, + "delete": false + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "user_id": { + "bsonType": "string", + "description": "用户id,参考uni-id-users表" + }, + "amount": { + "bsonType": "int", + "description": "本次变化的金额" + }, + "type": { + "bsonType": "int", + "enum": [1, 2], + "description": "类型 1:收入 2:支出" + }, + "balance": { + "bsonType": "int", + "description": "变化后的余额" + }, + "comment": { + "bsonType": "string", + "description": "备注,说明新增、消费的缘由", + "trim": "both" + }, + "create_date": { + "bsonType": "timestamp", + "description": "创建时间", + "defaultValue": { + "$env": "now" + } + } + } +} diff --git a/collection/uni-id-balances/package.json b/collection/uni-id-balances/package.json new file mode 100644 index 0000000..3d06b3d --- /dev/null +++ b/collection/uni-id-balances/package.json @@ -0,0 +1,15 @@ +{ + "name": "@opendb/uni-id-balances", + "version": "0.0.1", + "description": "用户余额消费/收入日志", + "keywords": ["用户余额日志"], + "opendb": { + "title": "用户余额日志", + "type": "collection", + "contributors": [{ + "name": "cqsort.com", + "email": "343169893@qq.com", + "homepage": "https://ext.dcloud.net.cn/plugin?id=4763" + }] + } +} diff --git a/collection/uni-id-channel/collection.json b/collection/uni-id-channel/collection.json new file mode 100644 index 0000000..d191da3 --- /dev/null +++ b/collection/uni-id-channel/collection.json @@ -0,0 +1,95 @@ +// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema +{ + "name": "推广渠道", + "bsonType": "object", + "required": [], + "permission": { + "read": true, + "create": true, + "update": "doc.user_id==auth.uid", + "delete": false + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "id": { + "bsonType": "string", + "title": "渠道号", + "description": "5位数字,从10000起自增长,数字类型,局限性很大" + }, + "created": { + "bsonType": "timestamp", + "description": "上传时间", + "defaultValue": { + "$env": "now" + } + }, + "modified": { + "bsonType": "timestamp", + "description": "修改时间", + "defaultValue": { + "$env": "now" + } + }, + "title": { + "bsonType": "string", + "title": "渠道名称" + }, + "total": { + "bsonType": "int", + "title": "总计" + }, + "rebate_money_rate": { + "bsonType": "double", + "title": "返现比例" + }, + "day_total": { + "bsonType": "object", + "description": "日期时间戳为key,数量累加", + "title": "每日总计" + }, + "status": { + "bsonType": "int", + "description": "用户状态", + "title": "用户状态", + "defaultValue": 0, + "enum": [{ + "text": "未提交", + "value": 0 + }, { + "text": "审核中", + "value": 1 + }, { + "text": "通过", + "value": 2 + }, { + "text": "审核拒绝", + "value": 3 + }] + }, + "mobile": { + "bsonType": "string", + "title": "联系电话" + }, + "address": { + "bsonType": "object", + "title": "地址" + }, + "user_id": { + "bsonType": "string", + "title": "用户", + "description": "用户", + "foreignKey": "uni-id-users._id", + "componentForEdit": { + "name": "cloud-user-select", + "props": { + "v-model": "formData.user_id" + } + }, + "defaultValue": { + "$env": "uid" + } + } + } +} diff --git a/collection/uni-id-channel/package.json b/collection/uni-id-channel/package.json new file mode 100644 index 0000000..880a454 --- /dev/null +++ b/collection/uni-id-channel/package.json @@ -0,0 +1,15 @@ +{ + "name": "@opendb/uni-id-channel", + "version": "0.0.1", + "description": "用户邀请渠道", + "keywords": ["用户邀请渠道"], + "opendb": { + "title": "用户邀请渠道", + "type": "collection", + "contributors": [{ + "name": "cqsort.com", + "email": "343169893@qq.com", + "homepage": "https://ext.dcloud.net.cn/plugin?id=4763" + }] + } +} diff --git a/collection/uni-id-score-cashout/collection.json b/collection/uni-id-score-cashout/collection.json new file mode 100644 index 0000000..dfcfddf --- /dev/null +++ b/collection/uni-id-score-cashout/collection.json @@ -0,0 +1,47 @@ +// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema +{ + "name": "积分兑换现金", + "bsonType": "object", + "required": [], + "permission": { + "read": true, + "create": false, + "update": false, + "delete": false + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "user_id": { + "bsonType": "string", + "title": "申请人", + "description": "用户id,参考uni-id-users表", + "foreignKey": "uni-id-users._id" + }, + "amount": { + "bsonType": "int", + "title": "数量" + }, + "balance": { + "bsonType": "int", + "title": "余额" + }, + "service": { + "bsonType": "double", + "title": "手续费" + }, + "money": { + "bsonType": "int", + "title": "金额", + "trim": "both" + }, + "create_date": { + "bsonType": "timestamp", + "title": "创建时间", + "defaultValue": { + "$env": "now" + } + } + } +} diff --git a/collection/uni-id-score-cashout/package.json b/collection/uni-id-score-cashout/package.json new file mode 100644 index 0000000..415326b --- /dev/null +++ b/collection/uni-id-score-cashout/package.json @@ -0,0 +1,15 @@ +{ + "name": "@opendb/uni-id-score-cashout", + "version": "0.0.1", + "description": "积分兑换现金", + "keywords": ["积分兑换现金"], + "opendb": { + "title": "积分兑换现金", + "type": "collection", + "contributors": [{ + "name": "cqsort.com", + "email": "343169893@qq.com", + "homepage": "https://ext.dcloud.net.cn/plugin?id=4763" + }] + } +} diff --git a/collection/uni-id-score-day-statistics/collection.json b/collection/uni-id-score-day-statistics/collection.json new file mode 100644 index 0000000..54f609b --- /dev/null +++ b/collection/uni-id-score-day-statistics/collection.json @@ -0,0 +1,46 @@ +// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema +{ + "bsonType": "object", + "required": [], + "permission": { + "read": true, + "create": false, + "update": false, + "delete": false + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "day": { + "bsonType": "timestamp", + "title": "日期时间戳" + }, + "value": { + "bsonType": "double", + "title": "值" + }, + "money": { + "bsonType": "int", + "title": "分红金额,单位分", + "description": "录入启用后,不允许修改" + }, + "open_time": { + "bsonType": "timestamp", + "title": "开启时间" + }, + "status": { + "bsonType": "int", + "description": "开放状态:0 禁用 1启用", + "title": "开放状态", + "defaultValue": 0, + "enum": [{ + "text": "禁用", + "value": 0 + }, { + "text": "启用", + "value": 1 + }] + } + } +} diff --git a/collection/uni-id-score-day-statistics/package.json b/collection/uni-id-score-day-statistics/package.json new file mode 100644 index 0000000..420f909 --- /dev/null +++ b/collection/uni-id-score-day-statistics/package.json @@ -0,0 +1,15 @@ +{ + "name": "@opendb/uni-id-score-day-statistics", + "version": "0.0.1", + "description": "积分每日统计", + "keywords": ["积分每日统计"], + "opendb": { + "title": "积分每日统计", + "type": "collection", + "contributors": [{ + "name": "cqsort.com", + "email": "343169893@qq.com", + "homepage": "https://ext.dcloud.net.cn/plugin?id=4763" + }] + } +} diff --git a/collection/uni-id-score-transfer/collection.json b/collection/uni-id-score-transfer/collection.json new file mode 100644 index 0000000..f29e17b --- /dev/null +++ b/collection/uni-id-score-transfer/collection.json @@ -0,0 +1,50 @@ +// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema +{ + "name": "积分转账", + "bsonType": "object", + "required": [], + "permission": { + "read": true, + "create": false, + "update": false, + "delete": false + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "user_id": { + "bsonType": "string", + "title": "申请人", + "description": "用户id,参考uni-id-users表", + "foreignKey": "uni-id-users._id" + }, + "get_user": { + "bsonType": "object" + }, + "amount": { + "bsonType": "int", + "description": "本次变化的积分" + }, + "balance": { + "bsonType": "int", + "description": "变化后的积分余额" + }, + "service": { + "bsonType": "double", + "description": "手续费" + }, + "mobile": { + "bsonType": "string", + "description": "手机号", + "trim": "both" + }, + "create_date": { + "bsonType": "timestamp", + "description": "创建时间", + "defaultValue": { + "$env": "now" + } + } + } +} diff --git a/collection/uni-id-score-transfer/package.json b/collection/uni-id-score-transfer/package.json new file mode 100644 index 0000000..e18b062 --- /dev/null +++ b/collection/uni-id-score-transfer/package.json @@ -0,0 +1,15 @@ +{ + "name": "@opendb/uni-id-score-transfer", + "version": "0.0.1", + "description": "积分转账", + "keywords": ["积分转账"], + "opendb": { + "title": "积分转账", + "type": "collection", + "contributors": [{ + "name": "cqsort.com", + "email": "343169893@qq.com", + "homepage": "https://ext.dcloud.net.cn/plugin?id=4763" + }] + } +}