-- Host: db-master-6.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=14621;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$nVwg7e2F2XtRR7VhJLIjXyVYeL5PovyO.2JrBeb2jzxYO1Xt0B3f8','admin','ak_759fa0d7cb97d9b0','2023-03-04 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$b6z19vSFvyQLcE5MpHP2YDB3/j3oZYPgn9/dI7PHMVD35ha4IO6wV','admin','ak_3f8cafc402fc8553','2023-09-08 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$2zZq.qntbjfwcLfch/y5AcLjgiLEIkdscEjMyXVV0Y21jh/RpsauU','user','ak_44288ded3e91d35a','2023-12-27 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$82InP0Fb7nAsJb1WStR2fiuxGwCdgejn7fnIKoQ9zTYCNu.Tl6zzw','user','ak_4d69b00bd98a3100','2023-03-08 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$DQvTO5sdikD4Y6a5SXuiLrfL4K/FODHgYdHzjLSnVwqYaAc22eWvc','user','ak_90f6fd3509b444e7','2023-01-22 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$82lqmyVyaYJ6rkjcjYRevM/ciYQlTbxiEOCRPjr5GwOP.y.rKkreM','admin','ak_d35ab2e5ff86b3f9','2023-06-07 10:20:00',NULL);
INSERT INTO `users` VALUES (7,'admin@example.org','$2b$12$8JsOJfpWESaylmKdrHahgg483lW/jpCwE5o.tOKxXENV8GAJuU1py','user','ak_c836600e3026076f','2023-07-20 10:09: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=33934;

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


