This repository has been archived on 2026-07-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
espocrm-base/application/Espo/Resources/metadata/entityDefs/TwoFactorCode.json
T
Yuri Kuznetsov bf72c8a4cc 2fa-email
2021-09-13 13:09:09 +03:00

57 lines
1.1 KiB
JSON

{
"fields": {
"code": {
"type": "varchar",
"maxLength": 100
},
"method": {
"type": "varchar",
"maxLength": 100
},
"attemptsLeft": {
"type": "int"
},
"isActive": {
"type": "bool",
"default": true
},
"createdAt": {
"type": "datetime",
"readOnly": true
}
},
"links": {
"user": {
"type": "belongsTo",
"entity": "User"
}
},
"indexes": {
"createdAt": {
"columns": [
"createdAt"
]
},
"userIdMethod": {
"columns": [
"userId",
"method"
]
},
"userIdMethodIsActive": {
"columns": [
"userId",
"method",
"isActive"
]
},
"userIdMethodCreatedAt": {
"columns": [
"userId",
"method",
"createdAt"
]
}
}
}