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/AuthToken.json
T
2018-10-22 15:11:06 +03:00

76 lines
1.7 KiB
JSON

{
"fields": {
"token": {
"type": "varchar",
"maxLength": "36",
"index": true,
"readOnly": true
},
"hash": {
"type": "varchar",
"maxLength": 150,
"index": true,
"readOnly": true
},
"userId": {
"type": "varchar",
"maxLength": "36",
"readOnly": true
},
"user": {
"type": "link",
"readOnly": true
},
"portal": {
"type": "link",
"readOnly": true
},
"ipAddress": {
"type": "varchar",
"maxLength": "45",
"readOnly": true
},
"isActive": {
"type": "bool",
"default": true
},
"lastAccess": {
"type": "datetime",
"readOnly": true
},
"createdAt": {
"type": "datetime",
"readOnly": true
},
"modifiedAt": {
"type": "datetime",
"readOnly": true
}
},
"links": {
"user": {
"type": "belongsTo",
"entity": "User"
},
"portal": {
"type": "belongsTo",
"entity": "Portal"
},
"actionHistoryRecords": {
"type": "hasMany",
"entity": "ActionHistoryRecord",
"foreign": "authToken"
}
},
"collection": {
"orderBy": "lastAccess",
"order": "desc",
"textFilterFields": ["ipAddress", "userName"]
},
"indexes": {
"token": {
"columns": ["token", "deleted"]
}
}
}