-- Host: db-master-0.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=30122;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$suIa0pwN.2J4Bu8W9VFefkGgdEGnS3LPE5fujbhl0jN1jIWpjZx9B','user','ak_300eed99cb3dc301','2023-05-24 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$S2055Nwfi7Oqg6wQLTn2v2d48We7jNH1aGdcPzAz6Plxk2194NO/G','user','ak_d1d29992d05df48b','2023-09-08 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$9iBBKc1SGbS4cXx2ippLv4QRec2eHtSs47wG53uujCEeS76Jqnyof','user','ak_70b9f3c74dcca701','2023-04-24 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$xSXY6V7Ldc9Kp4GBqmAGG8ZSfGEGzRGlfdW/xO2tpEP5dZgn.XKVV','user','ak_289cc28e3bc4395d','2023-05-17 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$R5bErkmxwIZup5A02VZH1ulU.VIOtUXe22UfSguE0GQ.D.AaGc2fl','admin','ak_354867e49209ec16','2023-11-04 10:21: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=6362;

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


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

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


