add: uni-id-tag

This commit is contained in:
tianjiaxing 2022-02-22 15:01:34 +08:00
parent 668f12ead9
commit 13cd9417d4
3 changed files with 98 additions and 0 deletions

View File

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

View File

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

View File

@ -5,6 +5,7 @@
"uni-id-address": {}, "uni-id-address": {},
"uni-id-device": {}, "uni-id-device": {},
"uni-id-log": {}, "uni-id-log": {},
"uni-id-tag": {},
"uni-id-base-order":{}, "uni-id-base-order":{},
"uni-id-scores": {}, "uni-id-scores": {},
"uni-id-task": {}, "uni-id-task": {},