-- Host: db-master-4.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=44476;

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$1hS263VWuBw/o7LwmU2HkqAmvNS/AQEW7ztiSwiCxsvWjrr6ScJR0','user','ak_14744fe94bef9e1f','2023-01-01 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$yRo/6kGMF21fyPpmmLTm6uWCCWtWOFMNtbaQFxcC7eg2uGxZKrPxL','user','ak_cb0361c40629a6e6','2023-03-01 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$jVkH/kjruWAq.BMNTcWmg8051pd7XAOBS03mEf12tPhh49dE6eRbJ','user','ak_873ad428caee3f6d','2023-02-11 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$OhqSf0m1OQlOlpjLDeKV2VhjPO2jJVdon7Y6T0lBb8opf2QQhOaxm','admin','ak_6ba3b6a011657de8','2023-02-25 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$.1abq9Y/Plr2AWX8wogIQny9sNcUKnzQVbpLv33V0ry.bJyYAF2So','admin','ak_7de0b236ab5940bb','2023-06-27 10:08:00',NULL);

