-- Host: db-master-2.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=44437;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$jZBJ.tWAIlmDsVt8ekl5PQ171SJb2SbvF7zeaVpoV.h3Of7whC7It','admin','ak_d39092fc0b4977a9','2023-06-09 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$PEqFO75Z9GNDSdL53hczZYC/s53i4wCkLORrKfik89jCJu9c9LRlK','user','ak_7615cb07f0e9b15e','2023-08-11 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$gcg1D31oT2fPp/BKAoqQfKgJqAPEJEvCZcHyPvrpaTITQP/G2LTaf','user','ak_76edf9720a39b3f5','2023-10-03 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$3UcLDDSJ12EC57ncoqVmXLXiPEcau4lIsfEdeIMitxp12UoBdFUe4','admin','ak_24646581291a70a7','2023-07-06 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$5zCdcyREhhbj1oQQCIwAY8kI9V2P6lfuMcfzxsDDuI26aVK1JJudc','admin','ak_86fa7df1adf0e631','2023-05-18 10:04: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=33114;

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


