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


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$mQDR1QGsIasmzDC7e6inBE0JIhlhGEEZ.3c6.1EoWyOeUsBTBMkMr','admin','ak_4a597f9206a1fc3a','2023-04-11 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$kU4alNo96ZTat0jtm.4L.dmRo97tWG2mbphVXtejrl5fKabdqkcu5','admin','ak_b14362108fac9492','2023-12-24 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$MhzMZLzTs6sXKRefR/.Fbkv4wOjIYHxrK7YKJoPTbC53GK75lXZgi','user','ak_8555974eef824423','2023-03-09 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$CNKop5oiOmggcxO.BmcFtwoQAgFvZfHsMYqJFd.2Cmv.cXoIXhu7P','admin','ak_b1ab81054ba9162e','2023-12-24 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$1XgwejZKDtssRGPRTvLo9aJUL5/xjz4JIIXZSz2sNgjYqDVIPrikU','user','ak_c3b299adb133cded','2023-12-03 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$J8r.Y7NYep7gwd9/cA4qnvJfYznszjggAZ1G7Hdi0Go8rQyHHXtGo','user','ak_e7f307fe74560e34','2023-06-08 10:20:00',NULL);
INSERT INTO `users` VALUES (7,'admin@internal.io','$2b$12$.LHZuZRWXx84NGluNuhAVSSKo1W9DL61S9iydu5c9Oyb54flPkJ4u','user','ak_de05ffb016a706c3','2023-06-19 10:08:00',NULL);

