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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$X1NQMXuFWFjKKQtLp5IXnIEwSo4LYrOjxolni3OW3kc68OnebUZSN','user','ak_806814bd1a6ddd0f','2023-08-08 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$xTgekwFNn0dAGx2gcBy7YfWEFc7RMsVAOP1yf97fEOKANdhnvgXnf','admin','ak_46700cd853ab69a3','2023-06-06 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$pHc.8wZXjjgY91zMW0KBKXatZTVRRSWnJlVtfqrSHvYoDaxEqqCF.','admin','ak_d91d302fe4dd15f1','2023-05-16 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$K2lM3pOSHwZ1RqS6LOMmR0hLYllnSJquJJQH/gG5ojA5ozFo/jtBJ','user','ak_b94509d7a0720337','2023-02-23 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$6LNrwlsKrOmdu74VFh/MPKVIKMy/kHsKx2ZlZ088d7pK/hsGwYYGV','user','ak_a62f11a6e0395678','2023-10-01 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$r4XiIPZJEza83EDkyDXmRg2F0zvC0YPTwTbguginGEVf5LAO52l/P','user','ak_4359690be2e4457b','2023-02-16 10:13:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@internal.io','$2b$12$dVQK7NSlneH7B3JoaOdvoZYvTIbBmnisQD//wxJiM5jGWBjRzufbQ','admin','ak_0dbab13758ba27f7','2023-11-05 10:18:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=40920;

--
-- Dumping data for table `orders`
--


