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