-- [2025-11-13 19:43:01] Создание атрибута;
CREATE TABLE IF NOT EXISTS `pnd_zone_geometry` (	`id` INT(12) NOT NULL AUTO_INCREMENT PRIMARY KEY )  ENGINE = InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `pnd_zone_geometry` ADD `color` char(7) NOT NULL;
REPLACE INTO `_sys_datatypes` (`obj_name`, `attr_name`,`attr_type`,`attr_desc`,`attr_templ`,`attr_order`) VALUES ("pnd_zone_geometry","color","color","","","100");
-- [2025-11-13 19:43:13] Создание атрибута;
CREATE TABLE IF NOT EXISTS `pnd_zone_geometry` (	`id` INT(12) NOT NULL AUTO_INCREMENT PRIMARY KEY )  ENGINE = InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `pnd_zone_geometry` ADD `geom` GEOMETRY NOT NULL;
REPLACE INTO `_sys_datatypes` (`obj_name`, `attr_name`,`attr_type`,`attr_desc`,`attr_templ`,`attr_order`) VALUES ("pnd_zone_geometry","geom","geometry","","","100");
-- [2025-11-13 19:43:24] Изменение атрибута color;
REPLACE INTO `_sys_datatypes` (`attr_type`, `attr_templ`, `attr_desc`, `attr_hide`, `attr_mand`, `attr_order`, `_sys_deleted`, `obj_name`, `attr_name`) VALUES ("color" , "" , "Цвет" , "0" , "0" , "100" , "0" , "pnd_zone_geometry" , "color");
-- [2025-11-13 19:43:24] Изменение атрибута 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 ("LINK|pnd_zones" , "" , "Участок" , "0" , "0" , "100" , "0" , "pnd_zone_geometry" , "zone_id");
-- [2025-11-13 19:43:24] Изменение атрибута geom;
REPLACE INTO `_sys_datatypes` (`attr_type`, `attr_templ`, `attr_desc`, `attr_hide`, `attr_mand`, `attr_order`, `_sys_deleted`, `obj_name`, `attr_name`) VALUES ("geometry" , "" , "Геометрия" , "0" , "0" , "100" , "0" , "pnd_zone_geometry" , "geom");
-- [2025-11-13 19:43:30] Изменение атрибута geom;
REPLACE INTO `_sys_datatypes` (`attr_type`, `attr_templ`, `attr_desc`, `attr_hide`, `attr_mand`, `attr_order`, `_sys_deleted`, `obj_name`, `attr_name`) VALUES ("geometry" , "" , "Геометрия" , "0" , "0" , "999" , "0" , "pnd_zone_geometry" , "geom");
-- [2025-11-13 19:43:34] Изменение атрибута 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 ("LINK|pnd_zones" , "" , "Участок" , "0" , "0" , "10" , "0" , "pnd_zone_geometry" , "zone_id");
-- [2025-11-13 19:43:39] Изменение комментария pnd_zone_geometry;
ALTER TABLE `pnd_zone_geometry` COMMENT = 'Геометрия зон';;
