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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$.TakunKZbyZgi4h.OukajXTHRjlr5QHZfLoYjA9fJeHQmnWfAjO2l','user','ak_c62bda9ec7626bf4','2023-11-25 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$AXRC5BdDkV.1GsGGMgcWjNEI8q3hSdvWnLikwjMcp0wBkgjZuh.wR','admin','ak_3ea1790338471a1b','2023-05-09 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$RDalQF9dB3ZYT4mIXeS.Wr73J7ofBbPVfBClNsqiRcx31lav23lrn','user','ak_7517e30b2290ecf4','2023-12-23 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$cSAby/HUZ7Pm9noPHT7wBVrYhGf9dmTI2oncLWqR/cAecMg3vZnux','admin','ak_18689e173d19b3f5','2023-02-14 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$us/eQCUkt2NZAbfERjeoHIDKyttL.vHqPkWsxgOCv9CqYMthFenpb','user','ak_7adfcde7b6544cb5','2023-10-17 10:09: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=8878;

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


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

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


