From 13cd9417d431413f152939cf3265795c7b808064 Mon Sep 17 00:00:00 2001 From: tianjiaxing Date: Tue, 22 Feb 2022 15:01:34 +0800 Subject: [PATCH] add: uni-id-tag --- collection/uni-id-tag/collection.json | 80 +++++++++++++++++++++++++++ collection/uni-id-tag/package.json | 17 ++++++ database/uni-id/db_init.json | 1 + 3 files changed, 98 insertions(+) create mode 100644 collection/uni-id-tag/collection.json create mode 100644 collection/uni-id-tag/package.json diff --git a/collection/uni-id-tag/collection.json b/collection/uni-id-tag/collection.json new file mode 100644 index 0000000..5068b16 --- /dev/null +++ b/collection/uni-id-tag/collection.json @@ -0,0 +1,80 @@ +{ + "schema": { + "bsonType": "object", + "required": ["tagid", "name"], + "permission": { + "read": false, + "create": false, + "update": false, + "delete": false + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "tagid": { + "bsonType": "string", + "description": "标签tagid", + "label": "标签tagid", + "componentForEdit": { + "name": "uni-easyinput" + } + }, + "name": { + "bsonType": "string", + "description": "标签名称", + "label": "标签名称", + "componentForEdit": { + "name": "uni-easyinput" + } + }, + "description": { + "bsonType": "string", + "description": "标签描述", + "label": "标签描述", + "componentForEdit": { + "name": "textarea" + }, + "componentForShow": { + "name": "textarea" + } + }, + "create_date": { + "bsonType": "timestamp", + "label": "创建时间", + "forceDefaultValue": { + "$env": "now" + }, + "componentForEdit": { + "name": "uni-dateformat" + } + } + } + }, + "index": [ + { + "IndexName": "tagid", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "tagid", + "Direction": "1" + } + ], + "MgoIsUnique": false + } + }, + { + "IndexName": "name", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "name", + "Direction": "1" + } + ], + "MgoIsUnique": false + } + } + ] +} diff --git a/collection/uni-id-tag/package.json b/collection/uni-id-tag/package.json new file mode 100644 index 0000000..1a67dc8 --- /dev/null +++ b/collection/uni-id-tag/package.json @@ -0,0 +1,17 @@ +{ + "name": "@opendb/uni-id-tag", + "version": "0.0.1", + "description": "uni-id-tag", + "keywords": ["标签列表"], + "opendb": { + "title": "标签列表", + "type": "collection", + "contributors": [ + { + "name": "DCloud", + "email": "", + "homepage": "https://gitee.com/dcloud/opendb" + } + ] + } +} diff --git a/database/uni-id/db_init.json b/database/uni-id/db_init.json index f4f16af..6f9ddec 100644 --- a/database/uni-id/db_init.json +++ b/database/uni-id/db_init.json @@ -5,6 +5,7 @@ "uni-id-address": {}, "uni-id-device": {}, "uni-id-log": {}, + "uni-id-tag": {}, "uni-id-base-order":{}, "uni-id-scores": {}, "uni-id-task": {},