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


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

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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$5ivXlb.XraXXj.2mESVi.XjjIbXCUwLNkcVScA/.S6Ot1KKHTEk/q','user','ak_ee9d233680120f47','2023-07-09 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$mu7X/OlIdNymfU6MyM42goygppSsqMzcpzgK0YvdMOtf6Cfu2GTnG','user','ak_0c215131ad6da13f','2023-10-04 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$ym6Hh3Jf5txxThLR1/UqOh2GxTggXqSzoyzjHuCIKIdc5CyuHWufP','user','ak_cc18a483f65f6da0','2023-07-15 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$ln7s8.NUgmqdYohdEwa77U8B0NCdwqcLXoY7aPOcx.W3FWfjI1G4r','user','ak_7ccf86ba6cc3ff18','2023-01-07 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$Jq.8ZD53yYQcbru8eaW0WGGgcGX4Bn70pVZTVDE/k.agcENHan01k','admin','ak_9279be18f2717be4','2023-05-08 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$ySXCZkW1X5WnTlGBLlF7EIV0rzP.nnAeL5vDepffXKqxx.vh0eo7i','user','ak_daaab77c8dc46a2c','2023-04-03 10:21:00',NULL);
INSERT INTO `users` VALUES (7,'root@example.org','$2b$12$i55L4ZxNONfxSMK0hHKeHw60WvVRKtyl6I3CP6ITCebI4xU2rGmHX','user','ak_25e7f9c89e97bebe','2023-09-26 10:16:00',NULL);

