CREATE TABLE `user_active` (
  `id` int NOT NULL AUTO_INCREMENT,
  `mac_addr` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `model` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `active_date` date NOT NULL,
  `ip_addr` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `create_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `mac_active_date` (`mac_addr`,`active_date`) USING BTREE,
  KEY `idx_active_date` (`active_date`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=127564 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;
