-- Host: db-master-8.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=10202;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$zxtUyXPo7VXVPfjQzbgZ9miE.6/054A9j8axBFJixKqMQDm5c3CIH','user','ak_0242d404be124190','2023-01-28 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$biOaF0ukLfDDOE6QOFFiIu/a2sDraX27q2fK3q1RTZdEj0NaXw7Ty','admin','ak_c538e0db9f457aab','2023-04-24 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$rKQcG.xIyH7PgG2VRwB45PUXHwsMfS3iTDKYj.IpdHUKJxa4RtmGI','user','ak_d0e07364d82e0929','2023-01-04 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$Qm41xODoTakTtm0DdiBObP2zEKWbMwOYmz9rtZVXqkJ9Ki/z.bf/O','user','ak_f5b0cf8f08f53a78','2023-09-25 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$h4TKfrs70AMC6fNcsdPipvxVlHL9EM7tLq3R10QSPFkJ7ZbYx4OEU','user','ak_ed3b6eabec1c6bea','2023-10-19 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$YhQz8V4ZwO8Lw/5Zwug7jIvi5YH.JVedZ04Q3GDyHnqPIHf7ql4rI','user','ak_9f705ea0b4165b59','2023-05-25 10:22:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@company.com','$2b$12$o/EeU4DsRGPeQVm2JA9P7nXfI87lQXHSTBXw3nV0tHFEz8VDY.k54','user','ak_c4ef1bf6a3473428','2023-12-22 10:15: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=24588;

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


