-- Host: db-master-2.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=21931;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$C9nfD5eop.8kW22PesyEEaD2uyXR7rGNXnAjOAVpEJTjNDYX6OGMu','user','ak_42843ab491511df0','2023-02-11 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$nU/gL0WG8vepMFT8V8WBCOkZF9j7rj465zwcu8VgSjr/KPpa2w9UJ','user','ak_36f5c985253e20a3','2023-09-25 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$O1X9bkDXPsySaWqlV39ct.aQK5F9d1xHyXKzZ27OSQU012TY0YwG/','user','ak_f10cdedea72318a1','2023-09-19 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$JSIEsS5/r3ruNN.qMMlB03fGMESeqxCTj8YYdZpR/R1pHSzWlp2Oa','admin','ak_fc4ef1ba5c5f4df7','2023-08-28 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$m0TGwgrR9FAGknFWGdzjgt9HS.h5yoqtoaSB6MR/xWi1tMbitguE/','user','ak_b5aefef6b2d85ec2','2023-01-23 10:12: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=4072;

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


