-- Host: db-master-5.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=43059;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$ug1AHavKmOEMWRjIwMWbZ727ffdkmAeIsk92GdP7wZzaW6x5y/2Ec','user','ak_d88d31b8e25876db','2023-01-04 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$FCzIJlvdODGOslveG0jNLaMOLaorf78O7CSTqT6ecuaMlDTYHCZm5','admin','ak_b8d81c945fa5ae8f','2023-10-21 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$TDQZQ7CUpLDb/5Xwkxy21nkiYFHuVsTkn8Zj1BCpRDrODFgMlL9Rz','user','ak_8e01ac4aeff9d375','2023-12-15 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$EbLk6JAb/3MtoQMfx8a8/kbPcJBDBif2qMm7a9r3H2ZzGLvQGMVpt','admin','ak_dc605f0b459988aa','2023-09-20 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$4AXz4l7QWIjkJ58mqTiyG174KevovGCWjrwUlx0rd70Zj4FVDECkN','user','ak_0385f1cbc90084d1','2023-06-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=40944;

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

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


