hedera-web/back/common/models/visit-agent.json

48 lines
785 B
JSON
Raw Normal View History

2019-07-22 11:46:10 +00:00
{
"name": "VisitAgent",
"description": "Agents visits",
"base": "PersistedModel",
"options": {
"mysql": {
"table": "hedera.visitAgent"
}
},
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"platform": {
"type": "String"
},
"browser": {
"type": "String"
},
"version": {
"type": "String"
},
"javascript": {
"type": "Boolean"
},
"cookies": {
"type": "Boolean"
},
"agent": {
"type": "String"
}
},
"relations": {
"visit": {
"type": "belongsTo",
"model": "Visit",
"foreignKey": "visitFk"
},
"firstAccess": {
"type": "belongsTo",
"model": "VisitAccess",
"foreignKey": "firstAccessFk"
}
}
}