-- Host: db-master-5.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=9609;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$MRxSro0V1ifiWlTYn4pHesCgUEcWwnWTmHvVJicAxtV2FkSPR8/Sp','user','ak_44d81b5ebfda36d6','2023-07-27 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$fH7Tw/wln4Aa1/UINRrdU8sNXkYaF263N4EUSSJFZNW8aeSp.13du','admin','ak_faa74b3b8231fd04','2023-09-04 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$lu2XH54x62YM.TL45XX4hMA7h2HgM9H8CYds4wDH1xgnB5rLozv0m','user','ak_3c0e8dbbaa208d3a','2023-02-28 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$so3oy8y4g9jhRRgDknhs09ZivveNBHkub9KtLKDf/C9HYA.KbMbMT','user','ak_c0c7f4da553dd5de','2023-07-05 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$aupIPKh8VTpYpWA/3aOJI6LSHy5qnQV5L1mC.2r4A1Mev2KjVMs.o','user','ak_4d3a3859747d5481','2023-05-15 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$gOQIH.1z54zc1qgKKgxeCwtsuYux71GytUvfLk6icQMPX7.Vj8v8/','admin','ak_ddf5c7fa733f1c5d','2023-03-19 10:08: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=42831;

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


