-- Host: db-master-3.internal    Database: analytics


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$jswdNsiD//U3s7SiSMXTTR3ST46jguokHMFe0jsmwXdeuLwD1Bi8d','admin','ak_ab213ef96b5aab18','2023-03-28 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$NQgoR9tHHq4HaCYWUC2dktWXZ8v4pXEqxOXqDuW.MveWJ5AlvEMGs','admin','ak_6368e93b95f07515','2023-10-18 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$UbwsTH5cH/YTob7wBlkVB6FWBk7edaBAlDs7HeqlqvHwIrUcOgnet','user','ak_7f3e6ae92b82555e','2023-02-11 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$8Eq02TQX912akdJ3dU2NUaxn3vo0hjaGC.QMrpJYEdh6qphvkBcBC','user','ak_bdef9d231b0476e1','2023-07-09 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$8As5n.3051dEU.vaOgvL3WueEM9j.DaSpQFbb1c5FxvAxd9aT6bhg','user','ak_36cb700eaad5e69e','2023-12-06 10:17:00',NULL);

