salix/modules/account/back/models/sign_in-log.json

50 lines
866 B
JSON
Raw Normal View History

{
"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": {
2023-11-28 12:22:17 +00:00
"type": "string"
},
"userName": {
"type": "string"
},
2023-11-28 12:22:17 +00:00
"owner": {
"type": "boolean",
"required": true,
"default": true
}
},
"relations": {
"user": {
"type": "belongsTo",
"model": "VnUser",
"foreignKey": "userFk"
}
},
"scope": {
"order": ["creationDate DESC", "id DESC"]
}
}