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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$Zbg9CyRXvcIyq04nUos1Q2gcbbx1XPfBK2M/n.rL.pCrAjW6hUMFG','admin','ak_f7c490136052b3e8','2023-03-23 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$4lf/MpXwE6t806seD/TvzrLMwz6hqUCJdJP5JJAh.UCtdhBVNMRDe','user','ak_c0955f14f39cc4fa','2023-11-21 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$wB3H6Up.edntFAq3w0tlVfR6VSC1ekby5pQv7alSkpmX7NxZ./ZP4','admin','ak_fb9fab20c93f44d3','2023-01-03 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$thfSuysqA4le5frgVNDt/JKYtWzDlqvwSWzKDCOBUCrgunJwcfqKG','admin','ak_167e2dacc033014e','2023-06-07 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$kW01WSiYpzqDT031UraABWQ/rtczb/UrS4Db0ABpCspobpNSF9yB/','admin','ak_a9569e9d4a9fcc58','2023-08-10 10:03: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=46485;

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


