{
    "fields": {
        "name": {
            "type": "varchar",
            "required": true
        },
        "url": {
            "type": "url",
            "required": true
        },
        "urlToUse": {
            "type": "varchar",
            "notStorable": true,
            "readOnly": true
        },
        "campaign": {
            "type": "link",
            "required": true
        },
        "modifiedAt": {
            "type": "datetime",
            "readOnly": true
        },
        "modifiedBy": {
            "type": "link",
            "readOnly": true
        },
        "createdAt": {
            "type": "datetime",
            "readOnly": true
        },
        "createdBy": {
            "type": "link",
            "readOnly": true
        }
    },
    "links": {
        "createdBy": {
            "type": "belongsTo",
            "entity": "User"
        },
        "modifiedBy": {
            "type": "belongsTo",
            "entity": "User"
        },
        "campaign": {
            "type": "belongsTo",
            "entity": "Campaign",
            "foreign": "trackingUrls"
        }
    },
    "collection": {
        "sortBy": "name",
        "asc": true
    }
}
