2019-10-15 12:44:00 +00:00
|
|
|
{
|
|
|
|
"name": "UserPhone",
|
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
2019-10-18 06:36:33 +00:00
|
|
|
"model":"UserLog",
|
|
|
|
"relation": "user"
|
2019-10-15 12:44:00 +00:00
|
|
|
},
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "userPhone"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
2019-10-18 06:36:33 +00:00
|
|
|
"type": "Number"
|
2019-10-15 12:44:00 +00:00
|
|
|
},
|
|
|
|
"phone": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true
|
2019-10-18 06:36:33 +00:00
|
|
|
},
|
|
|
|
"typeFk": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
2019-10-15 12:44:00 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"user": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Account",
|
|
|
|
"foreignKey": "userFk"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "UserPhoneType",
|
|
|
|
"foreignKey": "typeFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|