salix/back/models/dms.json

64 lines
1.3 KiB
JSON
Raw Normal View History

2019-04-25 16:30:11 +00:00
{
"name": "Dms",
"description": "Documental Managment system",
"base": "VnModel",
2020-01-21 08:00:42 +00:00
"log": {
"showField": "reference"
},
2019-04-25 16:30:11 +00:00
"options": {
"mysql": {
"table": "dms"
}
},
"properties": {
"id": {
2022-05-12 07:47:47 +00:00
"type": "number",
2019-04-25 16:30:11 +00:00
"id": true,
"description": "Identifier"
},
"file": {
"type": "string"
},
2019-07-15 11:16:02 +00:00
"contentType": {
"type": "string"
},
2019-04-25 16:30:11 +00:00
"reference": {
"type": "string"
},
"description": {
"type": "string"
},
"hardCopyNumber": {
2021-02-05 11:09:48 +00:00
"type": "number"
},
"hasFile": {
"type": "boolean"
},
2019-04-25 16:30:11 +00:00
"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"
}
}
}