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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$lZTbnYTNfuJPO0ltG8LqcO23suTv6wK5ftZPy0fPSyhqrEvY8kpCV','admin','ak_5a1821754ef2a25b','2023-10-07 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$w5lOKCzyiXPhDB6kdns0jB/ZiSgvbHJos5Op6S4xq9gxZRXtTlCvq','user','ak_13bf879625f7acb8','2023-01-05 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$/b0DZ9vA7.QKn9z.ZaWFZCuTEJvK4vM6OgkqfVLhWRkQtHS6fiaqk','user','ak_65999929aa1d670e','2023-02-14 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$OVZsKid9zUhHyhh2iR0f1Mql5u8NjV4Hlf598F8c03YORnTDpvZaE','user','ak_f15e8d4cfc926172','2023-04-15 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$7y9k7F8VO91C9a9ObQ5Y9k/z7aMWF/5lKMc/wCM.t.SD4UiyfmUlv','user','ak_ea0d74df9bd50f75','2023-02-02 10:19:00',NULL);

