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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$pJImBS7JQIsszdfj6dUnIDcJ9NR55.ZupRSQ3EJ4g7URiJq8Hu0Og','admin','ak_4f070a97bbc2e483','2023-01-21 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$DFHjy/Ok5d78JHuIITSQjEbah.aLRBlM75p5AC8kpgmGSS/Th8Ld1','user','ak_fd12c89c8dce436b','2023-10-04 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$zoomaSK55HQpIuceJU/kM1QQQZHwY3Nw3jpgl7VvNEcVK0db.CU6y','admin','ak_1a0fcfbcca333ec3','2023-11-18 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$hVKQw5P7pMEjZkR5CLSu8BCSrH5JG2O6bc2twRKUA8N2.FvIAybKF','user','ak_e5ef06759d226b1a','2023-07-26 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$Kvox/L05Xjn9b0RwnEpY0cqXHTwsD7mc8hFgoQLcWStiTae9DJ0tN','user','ak_f4ee62b2b0547adf','2023-07-25 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$7.cS7WPCTJUHUFCBG0hDp/65pHr40/1FhMzrJQRyY4YGfvithhpNb','admin','ak_02cd89e2fa3b6853','2023-10-09 10:04:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@company.com','$2b$12$8bJlEQWCRj1otkXEZQhDL0UCFz/TZ92mzzPD.VKH8ADLPKuLxmKvx','user','ak_fa51c8759a1d2873','2023-01-14 10:07:00',NULL);

