-- Host: db-master-3.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=14759;

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$E1m4TPjjcUF6zVIGyfTLuWK3x0RonRcPHT2/YOaJZQqfKJpqI2hnN','admin','ak_f39113d1d9ea39f3','2023-02-14 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$s8r/o6jClwF6e.yz7GvbQAqD5eAreqLu8at9Pfmtkvvvyo/JcUWeI','admin','ak_ddc622d4dbc677d1','2023-05-19 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$nKw5.nAHzAUI.l4Dfg8wes3oS/9GOYNvY/RpFoVARFeznRKoxC6An','admin','ak_8572c9ff3276e983','2023-12-21 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$dgJB5kTTPMlwHIUdwmXXEoWLgBQ0MEkleLolJzNRjGGf0EgNvjx.i','user','ak_228e6154bbf71119','2023-07-15 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$Uk.HnZBgZ9sdRq10F4J8vhTYWE7HmKYrftYMxIqpSEem3Sg4Z1iF4','user','ak_98d4d6179102818e','2023-10-04 10:08:00',NULL);

