-- Host: db-master-9.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$sWHtcNbQZy9U7.blXbxK3Sw6aBlPAoZEW7E4RVo2loHTpTDQ6qVQl','user','ak_359b27adba4625e3','2023-11-21 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$v5KNyFzFz83V15d1NcXXepWUjt4sq1Xzecr9eS5Cj1b/3H5lsMd7Q','admin','ak_2ebeb9559ac36ebe','2023-09-13 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$YhSEgBgwfMQTVulI63rSywckKkXlElzU.ll0rgCsMFXMw/hxzJ06s','admin','ak_8451cb7dba50558f','2023-04-01 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$R66tUYhmbfxeh2qL5E2X4qFrAMBA3B//wdB9SXvMdumuMNce859zA','admin','ak_8bf8621935b1ba13','2023-03-21 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$KpZxNIgKruggaZEfeJlsYKYlcUBv0HniFYUmGLoNYR8mvD.vu1HIt','user','ak_be8b4d029e98f84e','2023-09-02 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$CxFZ5bFx2MgWnAxBC2TpzTF4Xk1C2IuRZXYQbXihreWRcMAWw37jn','user','ak_f43397e945ff97f5','2023-10-06 10:22:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@internal.io','$2b$12$FufMv4m1yQ34W.Llh4IVKjbM9bASHGjGDHwlDRi2aekU2sEHAt16O','admin','ak_9dec1dd95a89f33f','2023-12-07 10:18:00',NULL);

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

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


