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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$Sg/PwUGVpC0RfFI5.YH8Z9Mp3fSM9reQ51FIyul//iyzXKedlhhqZ','user','ak_8fe92cf9a1109f5d','2023-06-07 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$whKGA.rWDMsH0mU4Yedtwhm5pvPWVUkZlr217slJa5uT0tZ2neuK.','user','ak_57e01f4dc0cc8946','2023-12-11 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$oDcy7aI8Xbl8S2vmsS4I45tmVbPGP1ua3pE1CuHByto4crZggYRi1','user','ak_cb2b481e7adfdaff','2023-09-20 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$tvmGRy7ZgaKZKLfdsFXumG19lLZEnnZ9FjmnzrEFxJuk8atlUsRLa','admin','ak_ebbae612b8ed9d42','2023-09-18 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$mkCodamO8dR07xNK8NJ8cUDvwkVWIjo7L/2Sd4DPaMsxjR7M8LgcX','admin','ak_e84480fadaa5e0ba','2023-11-16 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$1UK7MWh2Bto0oGlBOIoWdtGkprlR9upjLob5gJ7PbaZngyzH5ISVc','user','ak_8b707275922dbd94','2023-07-15 10:08:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=38678;

--
-- Dumping data for table `products`
--


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

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


