2023-11-15 12:49:41 +00:00
|
|
|
{
|
|
|
|
"name": "SignInLog",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "account.signInLog"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
2023-11-16 10:56:48 +00:00
|
|
|
"id": {
|
|
|
|
"type": "number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
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": {
|
2023-11-28 12:22:17 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-11-29 19:36:30 +00:00
|
|
|
"userName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-11-28 12:22:17 +00:00
|
|
|
"owner": {
|
|
|
|
"type": "boolean",
|
|
|
|
"required": true,
|
|
|
|
"default": true
|
2023-11-15 12:49:41 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"user": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "VnUser",
|
|
|
|
"foreignKey": "userFk"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"scope": {
|
|
|
|
"order": ["creationDate DESC", "id DESC"]
|
|
|
|
}
|
|
|
|
}
|