{
	"name": "ProductKit",
    "description": "A Product Kit model",
    "base": "PersistedModel",
    "options": {
        "idInjection": false,
        "mysql": {
            "table": "ProductKit"
        }
    },
	"properties": {
		"masterComponent": {
			"type": "number",
			"required": true,
			"length": null,
			"precision": 3,
			"scale": 0,
			"mysql": {
				"columnName": "masterComponent",
				"dataType": "tinyint",
				"dataLength": null,
				"dataPrecision": 3,
				"dataScale": 0,
				"nullable": "N"
			}
		},
		"quantity": {
			"type": "number",
			"required": true,
			"length": null,
			"precision": 12,
			"scale": null,
			"mysql": {
				"columnName": "quantity",
				"dataType": "float",
				"dataLength": null,
				"dataPrecision": 12,
				"dataScale": null,
				"nullable": "N"
			}
		},
        "kitComponentId": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "kitComponentId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "N"
            }
        },
        "kitControlId": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "kitControlId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "N"
            }
        },
        "productPackingId": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "productPackingId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "N"
            }
        },
        "creationDate": {
            "type": "date",
            "required": false,
            "length": null,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "creationDate",
                "dataType": "datetime",
                "dataLength": null,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "Y"
            }
        },
		"updatedDate": {
			"type": "date",
			"required": false,
			"length": null,
			"precision": null,
			"scale": null,
			"mysql": {
				"columnName": "updatedDate",
				"dataType": "datetime",
				"dataLength": null,
				"dataPrecision": null,
				"dataScale": null,
				"nullable": "Y"
			}
		},
		"createdById": {
			"type": "number",
			"required": false,
			"length": null,
			"precision": 10,
			"scale": 0,
			"mysql": {
				"columnName": "createdById",
				"dataType": "int",
				"dataLength": null,
				"dataPrecision": 10,
				"dataScale": 0,
				"nullable": "Y"
			}
		},
		"updatedById": {
			"type": "number",
			"required": false,
			"length": null,
			"precision": 10,
			"scale": 0,
			"mysql": {
				"columnName": "updatedById",
				"dataType": "int",
				"dataLength": null,
				"dataPrecision": 10,
				"dataScale": 0,
				"nullable": "Y"
			}
		}
	},
    "relations": {
        "kitComponent": {
            "type": "belongsTo",
            "model": "Product",
            "foreignKey": "kitComponentId"
        },
        "kitControl": {
            "type": "belongsTo",
            "model": "Product",
            "foreignKey": "kitControlId"
        },
        "packing": {
            "type": "belongsTo",
            "model": "ProductPacking",
            "foreignKey": "productPackingId"
        },
        "createdBy": {
            "type": "belongsTo",
            "model": "Customer",
            "foreignKey": "createdById"
        },
        "updatedBy": {
            "type": "belongsTo",
            "model": "Customer",
            "foreignKey": "updatedById"
        }
    },
    "acls": [],
    "methods": {}
}
