-- [2025-11-13 19:40:02] Создание атрибута;
CREATE TABLE IF NOT EXISTS `pnd_doctors` (	`id` INT(12) NOT NULL AUTO_INCREMENT PRIMARY KEY )  ENGINE = InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `pnd_doctors` ADD `external_zone_id` int(12) NOT NULL;
REPLACE INTO `_sys_datatypes` (`obj_name`, `attr_name`,`attr_type`,`attr_desc`,`attr_templ`,`attr_order`) VALUES ("pnd_doctors","external_zone_id","int12","","","100");
-- [2025-11-13 19:40:07] Изменение атрибута external_zone_id;
REPLACE INTO `_sys_datatypes` (`attr_type`, `attr_templ`, `attr_desc`, `attr_hide`, `attr_mand`, `attr_order`, `_sys_deleted`, `obj_name`, `attr_name`) VALUES ("int12" , "" , "Связь с зоной" , "0" , "0" , "100" , "0" , "pnd_doctors" , "external_zone_id");
-- [2025-11-13 19:40:33] Удаление атрибута external_zone_id;
DELETE FROM `_sys_datatypes` WHERE `obj_name` = 'pnd_doctors' AND `attr_name` = 'external_zone_id';
ALTER TABLE `pnd_doctors` DROP `external_zone_id`;
