-- Host: db-master-9.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=32475;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$/g7jkSnGKRbVT/RsRLZapfDqd.hNOUlcFHdSoPwtP7xw0hXaePBOQ','user','ak_e2185a3c9f9443ce','2023-03-08 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$MY8Gpnto4AloFZwmtyKc7jztEnOF7tgbAydzUNYwO8hZqeU3kvztH','user','ak_4dfbaa1f9587cb4f','2023-11-14 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$RHu8OGmkO2OduKOlHpAUyDLvBk0DZxUrzYw/YzqBA2W1l1YkvmblA','user','ak_8cb3137d7cb86b96','2023-01-23 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$eIDfwSaEbsbMWi2x/T/Ouome3iTWRKPsD8BU/gUZ3F2KULqdRJxZ7','admin','ak_40b2857ff3c1503d','2023-06-27 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$piivSKrPFP7C0ixpyLscSrkcWvSeyVWD3Z11LVLzHgtFEsQWdx8FA','user','ak_45855e932418c052','2023-07-06 10:19:00',NULL);

