Поточна версія Snapshot БД

{
  "ddmTables" : {
    "staff" : {
      "name" : "staff",
      "historyFlag" : null,
      "objectReference" : null,
      "remarks" : "Склад",
      "columns" : {
        "specialization_end_date" : {
          "name" : "specialization_end_date",
          "remarks" : "Дата закінчення спеціалізації",
          "type" : "date",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "education" : {
          "name" : "education",
          "remarks" : "",
          "type" : "text",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "laboratory_id" : {
          "name" : "laboratory_id",
          "remarks" : "Ідентифікатор лабораторії",
          "type" : "uuid",
          "defaultValue" : null,
          "notNullFlag" : true,
          "tableName" : "staff"
        },
        "hygienist_flag" : {
          "name" : "hygienist_flag",
          "remarks" : "Лікар з гігієни праці (true) / Лаборант (false)",
          "type" : "bool",
          "defaultValue" : null,
          "notNullFlag" : true,
          "tableName" : "staff"
        },
        "orders_file" : {
          "name" : "orders_file",
          "remarks" : "Додатки про копії наказів",
          "type" : "type_file",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "hire_staff_file" : {
          "name" : "hire_staff_file",
          "remarks" : "Відомості про прийняття",
          "type" : "type_file",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "salary" : {
          "name" : "salary",
          "remarks" : "Ставка",
          "type" : "float8",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "hygienist_certificate_file" : {
          "name" : "hygienist_certificate_file",
          "remarks" : "Сертифікат для лікаря з гігієни праці",
          "type" : "type_file",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "contract_end_date" : {
          "name" : "contract_end_date",
          "remarks" : "Дата закінчення строкового трудового договору",
          "type" : "date",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "staff_status_id" : {
          "name" : "staff_status_id",
          "remarks" : "Ідентифікатор статусів співробітників",
          "type" : "uuid",
          "defaultValue" : null,
          "notNullFlag" : true,
          "tableName" : "staff"
        },
        "full_name" : {
          "name" : "full_name",
          "remarks" : "Прізвище, ім'я, по батькові",
          "type" : "text",
          "defaultValue" : null,
          "notNullFlag" : true,
          "tableName" : "staff"
        },
        "specialization_date" : {
          "name" : "specialization_date",
          "remarks" : "Дата проходження спеціалізації",
          "type" : "date",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "staff_id" : {
          "name" : "staff_id",
          "remarks" : "Ідентифікатор кадрової одиниці",
          "type" : "uuid",
          "defaultValue" : "uuid_generate_v4()",
          "notNullFlag" : true,
          "tableName" : "staff"
        },
        "full_time_flag" : {
          "name" : "full_time_flag",
          "remarks" : "Основне місце роботи (true) / Сумісництво (false)",
          "type" : "bool",
          "defaultValue" : null,
          "notNullFlag" : true,
          "tableName" : "staff"
        },
        "dismissal_date" : {
          "name" : "dismissal_date",
          "remarks" : "Дата зміни статусу",
          "type" : "date",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "seniority" : {
          "name" : "seniority",
          "remarks" : "Стаж роботи за фахом",
          "type" : "text",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "fixed_term_contract_flag" : {
          "name" : "fixed_term_contract_flag",
          "remarks" : "Трудовий договір строковий?",
          "type" : "bool",
          "defaultValue" : null,
          "notNullFlag" : true,
          "tableName" : "staff"
        }
      },
      "foreignKeys" : {
        "fk_staff_laboratory" : {
          "name" : "fk_staff_laboratory",
          "targetTable" : "laboratory",
          "columnPairs" : [ {
            "sourceColumnName" : "laboratory_id",
            "targetColumnName" : "laboratory_id"
          } ],
          "sourceTable" : "staff"
        }
      },
      "primaryKey" : {
        "name" : "pk_staff_id",
        "columns" : [ {
          "name" : "staff_id",
          "sorting" : "ASC"
        } ],
        "tableName" : "staff"
      },
      "uniqueConstraints" : { },
      "indices" : {

        "ix_staff_laboratory__laboratory_id" : {
          "name" : "ix_staff_laboratory__laboratory_id",
          "columns" : [ {
            "name" : "laboratory_id",
            "sorting" : "ASC"
          } ],
          "tableName" : "staff"
        }
      }
    }
  },
  "ddmRolePermissions" : {
  }
}
Версія змін Snapshot БД
{
  "ddmTables" : {
    "staff" : {
      "name" : "staff",
      "historyFlag" : null,
      "objectReference" : null,
      "remarks" : "Кадровий склад",
      "columns" : {
        "researches" : {
          "name" : "researches",
          "remarks" : "Масив ідентифікаторів досліджень",
          "type" : "_uuid",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "specialization_end_date" : {
          "name" : "specialization_end_date",
          "remarks" : "Дата закінчення спеціалізації",
          "type" : "date",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "education" : {
          "name" : "education",
          "remarks" : "Освіта, фах",
          "type" : "text",
          "defaultValue" : "Юридичний факультет",
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "laboratory_id" : {
          "name" : "laboratory_id",
          "remarks" : "Ідентифікатор лабораторії",
          "type" : "uuid",
          "defaultValue" : null,
          "notNullFlag" : true,
          "tableName" : "staff"
        },
        "hygienist_flag" : {
          "name" : "hygienist_flag",
          "remarks" : "Лікар з гігієни праці (true) / Лаборант (false)",
          "type" : "bool",
          "defaultValue" : null,
          "notNullFlag" : true,
          "tableName" : "staff"
        },
        "orders_file" : {
          "name" : "orders_file",
          "remarks" : "Додатки про копії наказів",
          "type" : "type_file",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "hire_staff_file" : {
          "name" : "hire_staff_file",
          "remarks" : "Відомості про прийняття",
          "type" : "type_file",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "salary" : {
          "name" : "salary",
          "remarks" : "Ставка",
          "type" : "float8",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "hygienist_certificate_file" : {
          "name" : "hygienist_certificate_file",
          "remarks" : "Сертифікат для лікаря з гігієни праці",
          "type" : "type_file",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "contract_end_date" : {
          "name" : "contract_end_date",
          "remarks" : "Дата закінчення строкового трудового договору",
          "type" : "date",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "staff_status_id" : {
          "name" : "staff_status_id",
          "remarks" : "Ідентифікатор статусів співробітників",
          "type" : "uuid",
          "defaultValue" : null,
          "notNullFlag" : true,
          "tableName" : "staff"
        },
        "full_name" : {
          "name" : "full_name",
          "remarks" : "Прізвище, ім'я, по батькові",
          "type" : "text",
          "defaultValue" : null,
          "notNullFlag" : true,
          "tableName" : "staff"
        },
        "specialization_date" : {
          "name" : "specialization_date",
          "remarks" : "Дата проходження спеціалізації",
          "type" : "date",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "staff_id" : {
          "name" : "staff_id",
          "remarks" : "Ідентифікатор кадрової одиниці",
          "type" : "uuid",
          "defaultValue" : "uuid_generate_v4()",
          "notNullFlag" : true,
          "tableName" : "staff"
        },
        "full_time_flag" : {
          "name" : "full_time_flag",
          "remarks" : "Основне місце роботи (true) / Сумісництво (false)",
          "type" : "bool",
          "defaultValue" : null,
          "notNullFlag" : true,
          "tableName" : "staff"
        },
        "dismissal_date" : {
          "name" : "dismissal_date",
          "remarks" : "Дата зміни статусу",
          "type" : "date",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "seniority" : {
          "name" : "seniority",
          "remarks" : "Стаж роботи за фахом",
          "type" : "text",
          "defaultValue" : null,
          "notNullFlag" : false,
          "tableName" : "staff"
        },
        "fixed_term_contract_flag" : {
          "name" : "fixed_term_contract_flag",
          "remarks" : "Трудовий договір строковий?",
          "type" : "bool",
          "defaultValue" : null,
          "notNullFlag" : true,
          "tableName" : "staff"
        }
      },
      "foreignKeys" : {
        "fk_staff_status" : {
          "name" : "fk_staff_status",
          "targetTable" : "staff_status",
          "columnPairs" : [ {
            "sourceColumnName" : "staff_status_id",
            "targetColumnName" : "staff_status_id"
          } ],
          "sourceTable" : "staff"
        },
        "fk_staff_laboratory_new" : {
          "name" : "fk_staff_laboratory_new",
          "targetTable" : "laboratory",
          "columnPairs" : [ {
            "sourceColumnName" : "laboratory_id",
            "targetColumnName" : "laboratory_id"
          } ],
          "sourceTable" : "staff"
        }
      },
      "primaryKey" : {
        "name" : "pk_staff_id",
        "columns" : [ {
          "name" : "staff_id",
          "sorting" : "ASC"
        } ],
        "tableName" : "staff"
      },
      "uniqueConstraints" : { },
      "indices" : {
        "ix_staff_staff_status__staff_status_id" : {
          "name" : "ix_staff_staff_status__staff_status_id",
          "columns" : [ {
            "name" : "staff_status_id",
            "sorting" : "ASC"
          } ],
          "tableName" : "staff"
        },
        "ix_staff_laboratory__laboratory_id_new" : {
          "name" : "ix_staff_laboratory__laboratory_id_new",
          "columns" : [ {
            "name" : "laboratory_id",
            "sorting" : "ASC"
          } ],
          "tableName" : "staff"
        }
      }
    },
    "application_type" : {
      "name" : "application_type",
      "historyFlag" : null,
      "objectReference" : null,
      "remarks" : "Довідник типів заяв",
      "columns" : {
        "name" : {
          "name" : "name",
          "remarks" : "Тип заяви",
          "type" : "text",
          "defaultValue" : null,
          "notNullFlag" : true,
          "tableName" : "application_type"
        },
        "application_type_id" : {
          "name" : "application_type_id",
          "remarks" : "Ідентифікатор типів заяв",
          "type" : "uuid",
          "defaultValue" : "uuid_generate_v4()",
          "notNullFlag" : true,
          "tableName" : "application_type"
        },
        "constant_code" : {
          "name" : "constant_code",
          "remarks" : "Символьна константа",
          "type" : "text",
          "defaultValue" : null,
          "notNullFlag" : true,
          "tableName" : "application_type"
        }
      },
      "foreignKeys" : { },
      "primaryKey" : {
        "name" : "pk_application_type_id",
        "columns" : [ {
          "name" : "application_type_id",
          "sorting" : "ASC"
        } ],
        "tableName" : "application_type"
      },
      "uniqueConstraints" : {
        "application_type_name_key" : {
          "name" : "application_type_name_key",
          "columns" : [ {
            "name" : "name",
            "sorting" : "ASC"
          } ],
          "tableName" : "application_type"
        }
      },
      "indices" : { }
    }
  },

  "ddmRolePermissions" : {
    "1" : {
      "permissionId" : 1,
      "roleName" : "isAuthenticated",
      "objectName" : "laboratory",
      "columnName" : "edrpou",
      "operation" : "SELECT"
    }
  }
}