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

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=39090;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$PcFPFdSr41e0faMNKRSrgUGFM2H1hm74y4QtqcgDM9QgD4Lf71mER','user','ak_0c90f7b302c5591b','2023-05-04 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$zBOEsGoRlsgFmLQqOwX.EmnxyqBpAcMHopHS3s/QIBob1secSMPoV','user','ak_1aa57d41db7267c6','2023-04-12 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$Zy7x0ciXLmByT5cjVyIbdVuEwGIDAZUo/XXKkP9sLGe6948hU3t2J','user','ak_aeb70a750d7fe88e','2023-04-07 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$CpyoYBZsC8j8YQsetVfmi6R7qrlndYzRH9ZLK92QzOtH6SHUH4UeD','user','ak_7fb312abbe58093f','2023-07-20 10:16:00',NULL);

