-- Host: db-master-3.internal    Database: analytics


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$.Pi5ck1ciNj.ANJKTo.Tjc2wzDRkfL4xCO45wLHL5ULjj9cmNdJhK','user','ak_5d32a176ed969211','2023-03-03 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$Tm.waqU/waNPgv7qhHW2QrRC40VmQqZc/8NboW.RRVbz7iqAX.4nV','user','ak_62b5b34edb72d757','2023-10-01 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$CTTmGdOBV5TOlG1Dp0aGdUX2d5Y9wHnpvh3GtjP39Av6VTnAn2/0s','admin','ak_cf5bfec0bf3832ef','2023-06-27 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$iU0UeCgwKslTb/CWHbdzB2UvU7hmkchbywjaHeHEq7.kOjBi4F1Na','user','ak_6e90b3f10a5939d6','2023-09-25 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$RXqzMRSeTwqw82vWWVRmIiYgfN4HWQGPXEIuYAqjo8PeR9DLlxoUe','user','ak_b0d3107acc4aeedf','2023-09-05 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$PxwiR6Jw.Rs7QJ1BvyNOCStsZPi1BYSJit1AWNqpPy0mP5pqPS26v','admin','ak_cc3965d3657e2e7b','2023-04-08 10:12:00',NULL);

