-- Host: db-master-3.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=18281;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$zqdJeiT357eRZwvxuUeihPKuNPogLjt5.dG.rpTBJlrUPkWCefM01','user','ak_947554a35fd6126f','2023-06-13 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$XTuVVAUTF720rBPYvkCquFiwbdTMfXj/YvF.JZjwumXfuMLHh1xBj','admin','ak_723f88f6995851f0','2023-04-01 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$CPpyWIjFGzlaM1oMVVilmwVFLFSd.o8drqEXjgA0lvwqxo4uhR34W','user','ak_d367ea41c2cf16b8','2023-12-12 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$nFH/1EQT4/eFOaUcCwsbZ77C4w7GPkseq2CXv/lZXZ2.9HPAM1MEG','user','ak_5e26390736156773','2023-05-17 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$ulMnnYd9uYAOWa/6ATAx/C/uYpRIZBFmu1T5NSWwnNu5l4ElQozQw','admin','ak_ec22300ddc03ca6f','2023-07-15 10:00: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=21807;

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


