2018-02-07 12:48:55 +00:00
|
|
|
{
|
2018-02-08 10:40:06 +00:00
|
|
|
"name": "ItemLog",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "itemLog",
|
|
|
|
"database": "vn"
|
2018-02-07 12:48:55 +00:00
|
|
|
}
|
2018-02-08 10:40:06 +00:00
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"creationDate": {
|
|
|
|
"type": "Date"
|
2018-02-07 12:48:55 +00:00
|
|
|
},
|
2018-02-08 10:40:06 +00:00
|
|
|
"description": {
|
|
|
|
"type": "String"
|
2018-02-08 11:04:33 +00:00
|
|
|
},
|
|
|
|
"action": {
|
|
|
|
"type": "String"
|
2018-02-07 12:48:55 +00:00
|
|
|
}
|
2018-02-08 10:40:06 +00:00
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"item": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Item",
|
|
|
|
"foreignKey": "originFk"
|
|
|
|
},
|
|
|
|
"user": {
|
|
|
|
"type": "belongsTo",
|
2018-02-08 11:04:33 +00:00
|
|
|
"model": "Account",
|
2018-02-08 10:40:06 +00:00
|
|
|
"foreignKey": "userFk"
|
|
|
|
}
|
2018-02-07 12:48:55 +00:00
|
|
|
}
|
2018-02-08 10:40:06 +00:00
|
|
|
}
|