mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-26 14:31:15 +08:00
chore: uni-id-roles、uni-id-permissions
This commit is contained in:
parent
2afef8d21e
commit
a11e1c8492
@ -2,24 +2,23 @@
|
||||
"schema": {
|
||||
"bsonType": "object",
|
||||
"required": [
|
||||
"role_id",
|
||||
"permission"
|
||||
"permission_id"
|
||||
],
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "存储文档 ID,系统自动生成"
|
||||
},
|
||||
"role_id": {
|
||||
"permission_id": {
|
||||
"bsonType": "string",
|
||||
"description": "角色唯一标识,不可修改,不允许重复"
|
||||
"description": "权限唯一标识,不可修改,不允许重复"
|
||||
},
|
||||
"role_name": {
|
||||
"permission_name": {
|
||||
"bsonType": "string",
|
||||
"description": "角色名称"
|
||||
"description": "权限名称"
|
||||
},
|
||||
"comment": {
|
||||
"bsonType": "string",
|
||||
"description": "用户昵称"
|
||||
"description": "备注"
|
||||
},
|
||||
"create_date": {
|
||||
"bsonType": "timestamp",
|
||||
|
@ -17,9 +17,13 @@
|
||||
"bsonType": "string",
|
||||
"description": "角色名称"
|
||||
},
|
||||
"permission": {
|
||||
"bsonType": "array",
|
||||
"description": "角色拥有的权限列表"
|
||||
},
|
||||
"comment": {
|
||||
"bsonType": "string",
|
||||
"description": "用户昵称"
|
||||
"description": "备注"
|
||||
},
|
||||
"create_date": {
|
||||
"bsonType": "timestamp",
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"uni-id-users": {},
|
||||
"uni-id-roles": {},
|
||||
"uni-id-permissions": {},
|
||||
"uni-id-address": {},
|
||||
"uni-id-device": {},
|
||||
"uni-id-log": {},
|
||||
|
Loading…
Reference in New Issue
Block a user