-- Host: db-master-6.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=20569;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$b.U5L/ntgKxSskt9TyrrIRQwnKCfokbxIadUiaUgSuWQgNFa7Zu1H','admin','ak_32b4623747a90d2b','2023-01-04 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$7/TDd.W/l2.vxLvM0bN9IXtkdzf4o.8iINY6GpIOHKjNJVx5eOapg','admin','ak_c7d54482e91534d3','2023-12-01 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$yl1xot6ftUpfsK5fSgljACsBYFvyu/IZvlEejxbJC4UNXO3c/GGxa','admin','ak_a43eab524635199a','2023-08-01 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$tpLWmYJRBj2p1Y4HJYMjpoUIBIG.5KcOUzHN9n18m5QUdOVF7OTZN','user','ak_be2f35fb8472140d','2023-03-01 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$wLcIWVQO7fS0RB0bdJy/Wh4LkosdrEm.1sFNvtwmxNq2gGQr5y24Q','user','ak_d876970ad0af4c85','2023-02-03 10:19: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=26540;

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


