CREATE TABLE `auth_enable_ip` (
                            `id` int NOT NULL,
                            `id_agency` mediumint NOT NULL,
                            `ip` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

ALTER TABLE `auth_enable_ip`
    ADD PRIMARY KEY (`id`),
  ADD KEY `id_agency` (`id_agency`);

ALTER TABLE `auth_enable_ip`
    MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;