update opendb-department

This commit is contained in:
linju 2023-10-23 17:08:50 +08:00
parent 42b09d2b5b
commit 274e5897ac
2 changed files with 64 additions and 60 deletions

View File

@ -21,41 +21,45 @@
"bsonType": "string",
"description": "部门名称",
"title": "部门名称",
"trim":"both"
"trim": "both"
},
"level": {
"bsonType": "int",
"description": "部门层级,为提升检索效率而作的冗余设计"
},
"sort": {
"bsonType": "int",
"description": "部门在当前层级下的顺序,由小到大",
"title": "显示顺序"
},
"manager_uid": {
"bsonType": "string",
"description": "部门主管的userid 参考`uni-id-users` 表",
"foreignKey": "uni-id-users._id"
},
"level": {
"bsonType": "int",
"description": "部门层级,为提升检索效率而作的冗余设计"
},
"sort": {
"bsonType": "int",
"description": "部门在当前层级下的顺序,由小到大",
"title":"显示顺序"
},
"manager_uid":{
"bsonType": "string",
"description": "部门主管的userid 参考`uni-id-users` 表",
"foreignKey": "uni-id-users._id"
},
"create_date": {
"bsonType": "timestamp",
"description": "部门创建时间",
"forceDefaultValue": {
"$env": "now"
}
},
"status": {
"bsonType": "int",
"description": "部门状态0-正常、1-禁用"
}
}
},
"index": [
{
"IndexName": "name",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "name",
"Direction": "1"
}],
"MgoIsUnique": false
}
"IndexName": "name",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "name",
"Direction": "1"
}],
"MgoIsUnique": false
}
}
]
}

View File

@ -1,6 +1,6 @@
{
"name": "@opendb/opendb-department",
"version": "0.1.0",
"version": "0.1.1",
"description": "部门表",
"keywords": ["部门", "组织机构"],
"opendb": {