{
    "name": "Site",
    "description": "A Site model",
    "options": {
        "idInjection": false,
        "mysql": {
            "table": "Site"
        }
    },
    "properties": {
        "organizationId": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "organizationId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "N"
            }
        },
        "code": {
            "type": "string",
            "required": true,
            "length": 20,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "code",
                "dataType": "varchar",
                "dataLength": 20,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "N"
            }
        },
        "name": {
            "type": "string",
            "required": true,
            "length": 80,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "name",
                "dataType": "varchar",
                "dataLength": 80,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "N"
            }
        },
        "description": {
            "type": "string",
            "required": false,
            "length": 255,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "description",
                "dataType": "varchar",
                "dataLength": 255,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "Y"
            }
        },
        "address": {
            "type": "string",
            "required": false,
            "length": 45,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "address",
                "dataType": "varchar",
                "dataLength": 45,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "Y"
            }
        },
        "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"
            }
        }
    },
    "validations": [],
    "relations": {
        "organization": {
            "type": "belongsTo",
            "model": "Organization",
            "foreignKey": "organizationId"
        },
        "areas": {
            "type": "hasMany",
            "model": "Area",
            "foreignKey": "siteId"
        }
    },
    "acls": [],
    "methods": {}
}
