CREATE TABLE `Termination` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `building_id` int(11) NOT NULL,
  `status_id` int(11) NOT NULL,
  `lineworker_id` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `code` varchar(20) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `oan_id` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `rimo_id` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `contact` varchar(1024) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `phone` varchar(1024) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `email` varchar(1024) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `create_by` int(11) NOT NULL,
  `edit_by` int(11) NOT NULL,
  `create` int(11) NOT NULL,
  `edit` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

CREATE TABLE `Terminationstatus` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` int(11) NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `create_by` int(11) NOT NULL,
  `edit_by` int(11) NOT NULL,
  `create` int(11) NOT NULL,
  `edit` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;