2023-11-15 12:49:41 +00:00
|
|
|
{
|
|
|
|
"name": "SignInLog",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "account.signInLog"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
2023-11-16 07:30:01 +00:00
|
|
|
"token": {
|
|
|
|
"required": true,
|
|
|
|
"type": "string",
|
|
|
|
"description": "Token's user"
|
2023-11-15 12:49:41 +00:00
|
|
|
},
|
|
|
|
"creationDate": {
|
2023-11-16 07:30:01 +00:00
|
|
|
"type": "date"
|
2023-11-15 12:49:41 +00:00
|
|
|
},
|
|
|
|
"userFk": {
|
2023-11-16 07:30:01 +00:00
|
|
|
"required": true,
|
2023-11-15 12:49:41 +00:00
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"ip": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"user": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "VnUser",
|
|
|
|
"foreignKey": "userFk"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"scope": {
|
|
|
|
"order": ["creationDate DESC", "id DESC"]
|
|
|
|
}
|
|
|
|
}
|