-- Host: db-master-1.internal    Database: customers


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=40219;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$DYtUtW2uJ3xE6c2H3Mqn1JUUQbw2EOIyBtcYoNsoyP5R48GU9qxJH','admin','ak_b420a1211b144a32','2023-05-13 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$g6z.MnY8SxTeYWxzCkvm/12/fDIhMdRx42L2xYNvE5k.q4KkRCW9r','admin','ak_57c6a071e803e4d8','2023-11-04 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$55Ng5RS8R.Jv3MKDthNcKp6s0pcD5P7cFZB77TfDxkSeZdFtN7CXP','admin','ak_49bba05c4f0bfada','2023-09-28 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$Ygbvm7LYMeftvN6ZUw3oGGASlt/msAoMsug0mT6Tvb1d6FnWfIC0v','admin','ak_2bbd69e5d10a9927','2023-01-23 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$vJWcLgXxuxY25i/eXi.tdbOOk/q2ArpVgEMAwodqzLbBJcp7BA/so','user','ak_fe125da319f880f5','2023-03-05 10:10:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=13376;

--
-- Dumping data for table `audit_log`
--


