-- Host: db-master-5.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$Y5q0tKB6HFsfXjbxDT0z5suPfBaVboNr8Qo9A08KggzvJlj7.uHhj','user','ak_56cff93fc8d38502','2023-09-18 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$m96zoSsk/P4/ALT.NQt/cZbukdNR6KQop4dAj4pW9m0vRYNIDdTZ6','admin','ak_60955c79ab07e71c','2023-02-20 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$Vti.FuxLskbQ057Oiq3XlQZZrIDYSxGM5r2QqKxlzwYQqnqBvxOaq','user','ak_4f86a89acde6990a','2023-03-21 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$6hfAKKwlUVzqchkZYtZYbeXSmjakhqxcuVG91KjTqmT6GH4eacN.F','user','ak_4681c6af8e1b3fb4','2023-07-05 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$K.mXIFt4AvSTNmuyDSanWJA0LjFgPUeh874ALEXjqAT/MwrJ9zDE7','user','ak_1c9fab4b88360c37','2023-01-25 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$N3ZAdEDSGFuF42w4VnkGdtYzwfWAaze5qPcRD.QvItIbbQVCbpuxo','user','ak_67760268422264e6','2023-09-05 10:12: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=6555;

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

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


