Pre Merge pull request !20 from 主角/master

This commit is contained in:
主角 2024-09-03 03:49:18 +00:00 committed by Gitee
commit 578eb50860
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
24 changed files with 895 additions and 0 deletions

View File

@ -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": "存储文档 IDSKU 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"
}
}
}
}

View File

@ -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"
}]
}
}

View File

@ -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": "修改时间"
}
}
}

View File

@ -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"
}]
}
}

View File

@ -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": []
}

View File

@ -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"
}]
}
}

View File

@ -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": "修改时间"
}
}
}

View File

@ -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"
}]
}
}

View File

@ -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": "结束时间"
}
}
}

View File

@ -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"
}]
}
}

View File

@ -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": "修改时间"
}
}
}

View File

@ -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"
}]
}
}

View File

@ -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": "文章IDopendb-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"
}
}
}
}

View File

@ -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"
}]
}
}

View File

@ -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"
}
}
}
}

View File

@ -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"
}]
}
}

View File

@ -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"
}
}
}
}

View File

@ -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"
}]
}
}

View File

@ -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"
}
}
}
}

View File

@ -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"
}]
}
}

View File

@ -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
}]
}
}
}

View File

@ -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"
}]
}
}

View File

@ -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"
}
}
}
}

View File

@ -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"
}]
}
}