-- Host: db-master-4.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=11119;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$AVTTTjsuX31aphNieSbbl7VlMeyfD30WAJt.GVubFWMu3YCzTpNL8','user','ak_9a32f0b0095415cd','2023-08-27 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$GZFlbj82wGE.ZPzM3Y.ENSSPgFCPZ0eHgi6.4DXiR7cd1FK1psLk7','user','ak_ff6b2c6261ea789b','2023-09-23 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$ZbCp62G7hyuEH26dedGIAsfUI03yQMANhqRbTNyA6rBy3Z5te/smA','user','ak_61fbc29fc51772d5','2023-05-15 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$5qJiyTwZYcxEL6oEvdr0tbbN5wITMxRqGcw8bxDKl.2vpTrSrR.FV','user','ak_f5a45b7490022b18','2023-04-24 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$0USx28QIpNhsCXaTG9dMV/TbX0JJGlJTpTdvg2uEF614DEqMNPNDH','user','ak_22a9fc2a0755cc92','2023-01-07 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$p6IabrWSIaIvD8P3f7mjgmFTAq3GtEVjXPPl3ET1//SyF4IwISEia','user','ak_4d656f4eef6c8f91','2023-08-09 10:16:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=2883;

--
-- Dumping data for table `audit_log`
--


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

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


