{
    "id": "cub167-field-policy",
    "title": "Сопоставить подсказки схемы с правилами заполнения карточки",
    "columns": [
        "Наблюдение",
        "Результат"
    ],
    "rows": [
        [
            "Карточка 1",
            "Кабель \/ остаток 0"
        ],
        [
            "Название: ширина по field_len",
            120
        ],
        [
            "Кабель: фактические байты UTF-8",
            12
        ],
        [
            "qty: типовая ширина",
            11
        ],
        [
            "qty: NOT NULL",
            true
        ],
        [
            "Карточку с остатком 0 можно опубликовать",
            true
        ],
        [
            "Пустое название второй карточки допускает публикацию",
            false
        ],
        [
            "note: NOT NULL",
            false
        ],
        [
            "Примечание первой карточки",
            "SQL NULL"
        ],
        [
            "Примечание второй карточки",
            "Пустая строка"
        ]
    ],
    "checks": {
        "actual_first": true,
        "declared_title_width": true,
        "utf8_bytes_not_width": true,
        "integer_display_width": true,
        "note_width": true,
        "quantity_required": true,
        "nullable_note": true,
        "zero_is_accepted": true,
        "blank_name_rejected": true,
        "null_and_empty_differ": true,
        "metadata_not_publish_rule": true,
        "request_closed": true,
        "owned_objects_removed": true
    },
    "observations": {
        "fields": {
            "title": {
                "name": "title",
                "table": "dba.c167_fieldpolicy_80a57da061",
                "def": "NULL",
                "max_length": 0,
                "not_null": 0,
                "primary_key": 0,
                "unique_key": 0,
                "multiple_key": 1,
                "numeric": 0,
                "blob": 0,
                "type": "varchar",
                "unsigned": 0,
                "zerofill": 0
            },
            "qty": {
                "name": "qty",
                "table": "dba.c167_fieldpolicy_80a57da061",
                "def": "NULL",
                "max_length": 0,
                "not_null": 1,
                "primary_key": 0,
                "unique_key": 0,
                "multiple_key": 1,
                "numeric": 1,
                "blob": 0,
                "type": "integer",
                "unsigned": 0,
                "zerofill": 0
            },
            "note": {
                "name": "note",
                "table": "dba.c167_fieldpolicy_80a57da061",
                "def": "NULL",
                "max_length": 0,
                "not_null": 0,
                "primary_key": 0,
                "unique_key": 0,
                "multiple_key": 1,
                "numeric": 0,
                "blob": 0,
                "type": "varchar",
                "unsigned": 0,
                "zerofill": 0
            }
        },
        "declared_widths": {
            "title": 120,
            "qty": 11,
            "note": 160
        },
        "rows": [
            {
                "id": "1",
                "sku": "CAB-167",
                "title": "Кабель",
                "qty": "0",
                "note": null
            },
            {
                "id": "2",
                "sku": "EMPTY-167",
                "title": "",
                "qty": "7",
                "note": ""
            }
        ],
        "publication_policy": {
            "title": "non-blank",
            "qty": "non-negative INT",
            "note": "optional"
        },
        "accepted": [
            true,
            false
        ],
        "data_modified": false
    },
    "runtime": {
        "php": "7.4.33",
        "extension": "11.2.0.0002",
        "php_extension_metadata": null,
        "server_version": "11.3.5.1274",
        "client_version": "11.2.0",
        "database": "phpmanual167",
        "transport": "isolated_loopback_broker",
        "charset": "utf-8",
        "autocommit": false
    },
    "owned_objects": [
        {
            "type": "TABLE",
            "name": "c167_fieldpolicy_80a57da061"
        }
    ],
    "removed_objects": [
        {
            "type": "TABLE",
            "name": "c167_fieldpolicy_80a57da061"
        }
    ]
}
