-- Host: db-master-7.internal    Database: webapp_db


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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$kxOvqrO85o2.d8aKtxmIR0sdVfwg10tYolPKb5BiejUFRsfZ6hSrE','admin','ak_5cc50308f6e56549','2023-10-01 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$EaRbhkoFKw1SunEwmB8G1pEFuyi8dF0FPm.628J853zpn5xAsb9wD','user','ak_35e16567cc3d0965','2023-11-06 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$/88ZXGelYLtv5E7J24ckLxInUebT7RcA90y06QOwisAupDITFrqua','admin','ak_c177a51c853e2640','2023-11-27 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$UDDiezl4RDYa1XyXIpNudHKD/z47N/3wfYCDgbJnsL7xW9kynt0ta','user','ak_003b32f1111d1105','2023-09-27 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$M7PnbCXxZfcg4o.FEgfoYNJwv8DLH.Br8woSCirjnPYbFL9.Duv.y','user','ak_4a011a38074816b9','2023-01-11 10:08:00',NULL);

