salix/services/loopback/common/models/state.json

39 lines
778 B
JSON

{
"name": "State",
"base": "VnModel",
"options": {
"mysql": {
"table": "state"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"forceId": false
},
"name": {
"type": "String",
"required": false
},
"order":{
"type": "Number",
"required": false
},
"alertLevel":{
"type": "Number",
"required": false
},
"code":{
"type": "String",
"required": false
}
},
"scopes" : {
"alertLevelIs0" : {
"fields": ["id", "name"],
"where": {"alertLevel": "0"}
}
}
}