2017-10-13 14:22:45 +00:00
|
|
|
{
|
2023-01-23 14:24:00 +00:00
|
|
|
"name": "VnUser",
|
|
|
|
"base": "User",
|
|
|
|
"validateUpsert": true,
|
2019-02-27 12:10:26 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "account.user"
|
|
|
|
}
|
2020-09-21 11:24:43 +00:00
|
|
|
},
|
2023-04-14 23:51:38 +00:00
|
|
|
"resetPasswordTokenTTL": "604800",
|
2019-02-27 12:10:26 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "number",
|
2020-10-30 23:02:27 +00:00
|
|
|
"id": true
|
2019-02-27 12:10:26 +00:00
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
2023-01-31 13:57:24 +00:00
|
|
|
"username": {
|
|
|
|
"type": "string",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "name"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"type": "string",
|
2023-06-06 13:09:01 +00:00
|
|
|
"required": true
|
2023-01-31 13:57:24 +00:00
|
|
|
},
|
2019-02-27 12:10:26 +00:00
|
|
|
"roleFk": {
|
|
|
|
"type": "number",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "role"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nickname": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2020-03-09 08:00:03 +00:00
|
|
|
"lang": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2019-02-27 12:10:26 +00:00
|
|
|
"active": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"email": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"updated": {
|
|
|
|
"type": "date"
|
2020-11-11 09:52:35 +00:00
|
|
|
},
|
|
|
|
"image": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string"
|
2022-10-03 13:11:29 +00:00
|
|
|
},
|
|
|
|
"hasGrant": {
|
|
|
|
"type": "boolean"
|
2023-04-06 12:59:25 +00:00
|
|
|
},
|
2023-04-27 13:18:27 +00:00
|
|
|
"passExpired": {
|
|
|
|
"type": "date"
|
2023-06-13 09:49:42 +00:00
|
|
|
},
|
2023-04-06 12:59:25 +00:00
|
|
|
"twoFactor": {
|
|
|
|
"type": "string"
|
2019-02-27 12:10:26 +00:00
|
|
|
}
|
|
|
|
},
|
2020-09-21 11:24:43 +00:00
|
|
|
"relations": {
|
|
|
|
"role": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Role",
|
|
|
|
"foreignKey": "roleFk"
|
|
|
|
},
|
|
|
|
"roles": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "RoleRole",
|
2020-10-30 23:02:27 +00:00
|
|
|
"foreignKey": "role",
|
|
|
|
"primaryKey": "roleFk"
|
2020-09-21 11:24:43 +00:00
|
|
|
},
|
|
|
|
"emailUser": {
|
|
|
|
"type": "hasOne",
|
|
|
|
"model": "EmailUser",
|
|
|
|
"foreignKey": "userFk"
|
2019-07-03 09:08:44 +00:00
|
|
|
},
|
|
|
|
"worker": {
|
|
|
|
"type": "hasOne",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "userFk"
|
2022-04-20 08:25:01 +00:00
|
|
|
},
|
|
|
|
"userConfig": {
|
|
|
|
"type": "hasOne",
|
|
|
|
"model": "UserConfig",
|
|
|
|
"foreignKey": "userFk"
|
2020-09-21 11:24:43 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
2023-07-03 11:33:48 +00:00
|
|
|
"property": "signIn",
|
2019-02-27 12:10:26 +00:00
|
|
|
"accessType": "EXECUTE",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
2022-09-21 13:15:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"property": "recoverPassword",
|
|
|
|
"accessType": "EXECUTE",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
},
|
2021-06-29 13:31:58 +00:00
|
|
|
{
|
2022-09-21 13:15:19 +00:00
|
|
|
"property": "validateToken",
|
2019-02-27 12:10:26 +00:00
|
|
|
"accessType": "EXECUTE",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$authenticated",
|
|
|
|
"permission": "ALLOW"
|
2022-10-27 07:01:09 +00:00
|
|
|
},
|
2023-04-06 12:59:25 +00:00
|
|
|
{
|
|
|
|
"property": "validateAuth",
|
|
|
|
"accessType": "EXECUTE",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
},
|
2022-10-27 07:01:09 +00:00
|
|
|
{
|
|
|
|
"property": "privileges",
|
|
|
|
"accessType": "*",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$authenticated",
|
|
|
|
"permission": "ALLOW"
|
2020-09-21 11:24:43 +00:00
|
|
|
}
|
2023-04-27 13:06:05 +00:00
|
|
|
],
|
|
|
|
"scopes": {
|
|
|
|
"preview": {
|
2023-05-30 07:13:47 +00:00
|
|
|
"fields": [
|
|
|
|
"id",
|
|
|
|
"name",
|
|
|
|
"username",
|
|
|
|
"roleFk",
|
|
|
|
"nickname",
|
|
|
|
"lang",
|
|
|
|
"active",
|
|
|
|
"created",
|
|
|
|
"updated",
|
|
|
|
"image",
|
|
|
|
"hasGrant",
|
|
|
|
"realm",
|
|
|
|
"email"
|
|
|
|
]
|
2023-04-27 13:06:05 +00:00
|
|
|
}
|
|
|
|
}
|
2017-10-13 14:22:45 +00:00
|
|
|
}
|