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


--
-- 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=17000;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=36909;

--
-- Dumping data for table `sessions`
--


--
-- 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=47713;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$xOkGHlON2vUXdew1FWtJ1NK/dOAYNwvJIsZBeQhgjOnqAY7sdOx4K','admin','ak_f0051e3e60b2aa00','2023-02-26 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$cVP39idYMgLMFp5w3EDYuekzykg34tp4uIc5ZELi52UDY4y.Of8m6','user','ak_195b1da8291b2450','2023-05-16 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$fuuiPcRtc3WJXL7DwWRjqqMKVKrPe0QDeZKmdEiVQNQd1hS8Ywv3N','admin','ak_17d67a4e138ce567','2023-11-15 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$.GAv2703TtqVYtc4En1dAABd3csxkspGwy9ptE3Mxj566rUl2gHYe','user','ak_15bd2b812212a9e3','2023-12-03 10:19:00',NULL);

