50 lines
866 B
JSON
50 lines
866 B
JSON
{
|
|
"name": "SignInLog",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "account.signInLog"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"token": {
|
|
"required": true,
|
|
"type": "string",
|
|
"description": "Token's user"
|
|
},
|
|
"creationDate": {
|
|
"type": "date"
|
|
},
|
|
"userFk": {
|
|
"required": true,
|
|
"type": "number"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"userName": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"type": "boolean",
|
|
"required": true,
|
|
"default": true
|
|
}
|
|
},
|
|
"relations": {
|
|
"user": {
|
|
"type": "belongsTo",
|
|
"model": "VnUser",
|
|
"foreignKey": "userFk"
|
|
}
|
|
},
|
|
"scope": {
|
|
"order": ["creationDate DESC", "id DESC"]
|
|
}
|
|
}
|