-- Host: db-master-8.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=14951;

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$zbrHKv.FbCEJh1lYgdhMgch2ZoAGWHn.FtThH7x2/4lbge4iFpy58','admin','ak_46e2874de391438e','2023-01-11 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$1zfoP34UxaR6y4ggZAjEw/Oz5Z2h9jmBursydSkyUHzawPIEy4YCP','user','ak_600e823d1829a64e','2023-03-28 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$SUwALz5a3rVYz/e/zy8Hd/BobQCLQrbdEeQ8hBjrdNsX4yFcg19pq','admin','ak_f2d9e66e106cf9bf','2023-10-25 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$OmJv6LgGOCmB7BrBHBqAlwgQe0jigQw2PmJ3a0laP1fSkKvjN7NJF','admin','ak_6ae185c985c6d499','2023-12-24 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$Aas7e/uiAxBhOTLQoM.lMvAFc5gwCyhU7MgFxQfenb9XyUXwzjbnX','admin','ak_d25c054712ea2435','2023-05-02 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$3mhXG5WRVMmy4JK1to5DFvsivbt4ei9QLPSuZE7wGFJ8aVcBlMKNk','admin','ak_cf344c2ca3b7619b','2023-07-02 10:18:00',NULL);
INSERT INTO `users` VALUES (7,'admin@internal.io','$2b$12$mb6uWSxEt9pd99S9zMaBeZ/EG0eewFKyz4rw8fjkdDkpsQ/BbRzyM','user','ak_2a4287f131fd761e','2023-11-12 10:08: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=24723;

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

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


