58 lines
1.2 KiB
JSON
58 lines
1.2 KiB
JSON
|
|
{
|
|
"name": "Dms",
|
|
"description": "Documental Managment system",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "dms"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"file": {
|
|
"type": "string"
|
|
},
|
|
"reference": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"hardCopyNumber": {
|
|
"type": "Number"
|
|
},
|
|
"hasFile": {
|
|
"type": "boolean"
|
|
},
|
|
"created": {
|
|
"type": "Date"
|
|
}
|
|
},
|
|
"relations": {
|
|
"dmsType": {
|
|
"type": "belongsTo",
|
|
"model": "DmsType",
|
|
"foreignKey": "dmsTypeFk"
|
|
},
|
|
"worker": {
|
|
"type": "belongsTo",
|
|
"model": "Worker",
|
|
"foreignKey": "workerFk"
|
|
},
|
|
"warehouse": {
|
|
"type": "belongsTo",
|
|
"model": "Warehouse",
|
|
"foreignKey": "warehouseFk"
|
|
},
|
|
"company": {
|
|
"type": "belongsTo",
|
|
"model": "Company",
|
|
"foreignKey": "companyFk"
|
|
}
|
|
}
|
|
} |