{
    "fields": {
        "name": {
            "type": "varchar",
            "required": true,
            "trim": true,
            "default": null,
            "options": [
                "FISCALIZARE+CONECTARE ANAF",
                "VERIFICARE ANUALA",
                "VERIFICARE ANUALA+CONTRACT DE SERVICE",
                "CONECTARE SERVER ANAF",
                "PREUNGIRE AB. SIM",
                "VERIFICARE ANUALA+CONTRACT DE SERVICE+CONECTARE ONLINE ANAF",
                "RADIERE",
                "PREDARE PRIMIRE MF+JE",
                "SIGILARE",
                "MENTENANTA CU DEPLASARE"
            ],
            "audited": true
        },
        "status": {
            "type": "enum",
            "options": [
                "Planned",
                "Held",
                "Not Held"
            ],
            "default": "Planned",
            "style": {
                "Planned": "primary",
                "Held": "success",
                "Not Held": "warning"
            },
            "audited": true,
            "required": true
        },
        "dateStart": {
            "type": "datetimeOptional",
            "notNull": false,
            "view": "crm:views/meeting/fields/date-start",
            "required": false,
            "default": "javascript: return this.dateTime.getNow(15);",
            "audited": true,
            "minuteStep": 30
        },
        "dateEnd": {
            "type": "datetimeOptional",
            "notNull": false,
            "view": "crm:views/meeting/fields/date-end",
            "required": true,
            "after": "dateStart",
            "minuteStep": 30
        },
        "isAllDay": {
            "notNull": true,
            "type": "bool",
            "readOnly": false,
            "layoutListDisabled": true,
            "layoutDetailDisabled": true,
            "layoutMassUpdateDisabled": true
        },
        "duration": {
            "type": "duration",
            "start": "dateStart",
            "end": "dateEnd",
            "options": [
                300,
                600,
                900,
                1800,
                2700,
                3600,
                7200,
                10800,
                14400,
                18000,
                21600,
                43200,
                86400
            ],
            "default": 300,
            "notStorable": true,
            "select": {
                "select": "TIMESTAMPDIFF_SECOND:(dateStart, dateEnd)"
            },
            "order": {
                "order": [
                    [
                        "TIMESTAMPDIFF_SECOND:(dateStart, dateEnd)",
                        "{direction}"
                    ]
                ]
            }
        },
        "parent": {
            "notStorable": true,
            "type": "linkParent",
            "entityList": [
                "Account",
                "Lead",
                "Contact",
                "Amef"
            ]
        },
        "description": {
            "type": "text"
        },
        "reminders": {
            "name": "reminders",
            "label": "REMINDERS",
            "type": "jsonArray",
            "notStorable": true,
            "view": "crm:views/meeting/fields/reminders",
            "layoutListDisabled": true,
            "dynamicLogicVisible": null,
            "dynamicLogicReadOnly": null,
            "dynamicLogicInvalid": null,
            "inlineEditDisabled": false,
            "tooltip": false
        },
        "createdAt": {
            "notNull": false,
            "type": "datetime",
            "readOnly": true,
            "minuteStep": 30
        },
        "modifiedAt": {
            "notNull": false,
            "type": "datetime",
            "readOnly": true,
            "minuteStep": 30
        },
        "createdBy": {
            "type": "link",
            "readOnly": true,
            "view": "views/fields/user"
        },
        "modifiedBy": {
            "type": "link",
            "readOnly": true,
            "view": "views/fields/user"
        },
        "assignedUser": {
            "type": "link",
            "required": false,
            "view": "views/fields/assigned-user"
        },
        "teams": {
            "type": "linkMultiple",
            "view": "views/fields/teams",
            "defaultAttributes": {
                "teamsIds": [
                    "5fb5284bed2e0f990"
                ],
                "teamsNames": {
                    "5fb5284bed2e0f990": "MUULOX SERVICE"
                }
            }
        },
        "amef": {
            "type": "link",
            "required": true
        },
        "pieseschimbate": {
            "type": "varchar",
            "maxLength": 300,
            "trim": true,
            "options": [
                "NONE",
                "ACUMULATOR",
                "IMPRIMANTA",
                "PLACA DE BAZA",
                "TASTATURA",
                "DISPLAY",
                "INCARCATOR",
                "MUFA CONECTARE"
            ],
            "isCustom": true,
            "required": true
        },
        "accesoriiamef": {
            "type": "varchar",
            "maxLength": 300,
            "trim": true,
            "options": [
                "FARA ACCESORII",
                "INCARCATOR",
                "CABLU CONECTARE",
                "CUTIE"
            ],
            "isCustom": true,
            "required": true
        },
        "tipinterventie": {
            "type": "multiEnum",
            "storeArrayValues": true,
            "options": [
                "Fiscalizare",
                "Service",
                "Verificare Anuala",
                "Update Software",
                "Conectare la ANAF",
                "PRELUNGIRE AB. SIM",
                "VERIFICARE TRIM CU DEPLASARE",
                "RADIERE",
                "SIGILARE",
                "INSTALARE",
                "FORIT",
                "E-FACTURARE"
            ],
            "style": {
                "Fiscalizare": null,
                "Service": null,
                "Verificare Anuala": null,
                "Update Software": null,
                "Conectare la ANAF": null,
                "PRELUNGIRE AB. SIM": null,
                "VERIFICARE TRIM CU DEPLASARE": null,
                "RADIERE": null,
                "SIGILARE": null,
                "INSTALARE": null,
                "FORIT": null,
                "E-FACTURARE": null
            },
            "isSorted": false,
            "allowCustomOptions": true,
            "isCustom": true,
            "required": true,
            "displayAsLabel": false,
            "displayAsList": false
        },
        "interventiinr": {
            "type": "number",
            "len": 36,
            "notNull": false,
            "unique": false,
            "nextNumber": 12876,
            "padLength": 5,
            "prefix": "MXI_",
            "isCustom": true
        },
        "documents": {
            "type": "linkMultiple",
            "layoutDetailDisabled": false,
            "layoutMassUpdateDisabled": false,
            "noLoad": false,
            "importDisabled": false,
            "isCustom": true
        },
        "account": {
            "type": "link",
            "required": false
        },
        "pOSbancar": {
            "type": "link"
        },
        "dateStartDate": {
            "required": false
        }
    },
    "links": {
        "parent": {
            "type": "belongsToParent",
            "foreign": "interventiiChildren"
        },
        "createdBy": {
            "type": "belongsTo",
            "entity": "User"
        },
        "modifiedBy": {
            "type": "belongsTo",
            "entity": "User"
        },
        "assignedUser": {
            "type": "belongsTo",
            "entity": "User"
        },
        "teams": {
            "type": "hasMany",
            "entity": "Team",
            "relationName": "EntityTeam",
            "layoutRelationshipsDisabled": true
        },
        "amef": {
            "type": "belongsTo",
            "foreign": "interventiis",
            "entity": "Amef",
            "audited": false,
            "isCustom": true
        },
        "documents": {
            "type": "hasMany",
            "foreign": "interventii",
            "entity": "Document",
            "audited": false,
            "isCustom": true
        },
        "account": {
            "type": "belongsTo",
            "foreign": "interventiis",
            "entity": "Account",
            "audited": false,
            "isCustom": true
        },
        "pOSbancar": {
            "type": "belongsTo",
            "foreign": "interventiis",
            "entity": "POSbancar",
            "audited": false,
            "isCustom": true
        }
    },
    "collection": {
        "orderBy": "createdAt",
        "order": "desc",
        "textFilterFields": [
            "name"
        ],
        "fullTextSearch": false,
        "countDisabled": false
    },
    "indexes": {
        "dateStartStatus": {
            "columns": [
                "dateStart",
                "status"
            ]
        },
        "dateStart": {
            "columns": [
                "dateStart",
                "deleted"
            ]
        },
        "status": {
            "columns": [
                "status",
                "deleted"
            ]
        },
        "assignedUser": {
            "columns": [
                "assignedUserId",
                "deleted"
            ]
        },
        "assignedUserStatus": {
            "columns": [
                "assignedUserId",
                "status"
            ]
        }
    },
    "optimisticConcurrencyControl": false
}