hedera-front/back/common/models/visit-user.json

34 lines
552 B
JSON

{
"name": "VisitUser",
"description": "User visits",
"base": "PersistedModel",
"options": {
"mysql": {
"table": "hedera.visitUser"
}
},
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"stamp": {
"type": "Date",
"required": true
}
},
"relations": {
"access": {
"type": "belongsTo",
"model": "VisitAccess",
"foreignKey": "accessFk"
},
"user": {
"type": "belongsTo",
"model": "Account",
"foreignKey": "userFk"
}
}
}