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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$xgD2XZAcEIuSZn/1D1E.6IPtAyCcscrtWuxN/BPgiYM4zlO7CMvWz','user','ak_4200702f8c7b2a2c','2023-04-03 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$bWiHOKlL2ok/u1CHFIiUqEZqici4ECFzFu2HtKslQkUWvhVW4HXxt','admin','ak_a7d2abe14de3444c','2023-07-01 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$wlKVO3uYOwcRa6saZiFEWbuKb10s8cy1/wvSOHtkB5lITYsabR7FW','user','ak_7869898c5d9e3d48','2023-09-15 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$rfV.6Pw/Q6OTHgZYDvM5rMceW9NoXoU7YBwTY5NVLZvWLonlM4K5N','user','ak_29cc3fa61ae16928','2023-03-10 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$e5Em8.Uco4BybFXn6/wsD0C4KWMEY4BEOcDu/0UBpVBELgyPt53Ia','user','ak_ddacc62ba93e51a6','2023-05-28 10:13: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=29349;

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


