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


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$jZQ1ImlzIFkfpHgTIGr11y8qfAJo/vBp4uakJwzJm8/RNDXJBo.O6','user','ak_eead4881e0cbcb90','2023-07-19 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$C0BOn4/MHioBGOPV.y3m8dj8WNt6y.mRNhIVG7pcvTnHAiRufTUQL','user','ak_0410e7ce9f46ec09','2023-07-04 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$grAI7b6tfMuCMEw2q6950ONH2q.xUqGxtQJErnMqYnz/tY4TdDP5e','user','ak_f4ffdad545d4f8e0','2023-11-03 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$Efj.BcXojazak3kczXZJi7dFbqYNR9OuX34B0uJLRV0Hsm0W5WUij','user','ak_d871817502ea91e0','2023-01-09 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$Pmr859/x6X4CZMWdxu.A8LWX.5m2.DUl8bcLXowUDSYqsgVw7xYey','admin','ak_cf4e3221e7d04b1a','2023-05-26 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$ItAttqoEWD8HuhIwBaaCwcSF4E9uugV13/wZ/rGUUwF7pm2Xo06j0','user','ak_8cbf94e1ba6c5b01','2023-04-11 10:13:00',NULL);

