-- Host: db-master-6.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$1/o66ObtJ/3sGsS2Kir0JO6xkikP2XpypryBSb28zVUgKo15DCl2D','admin','ak_3b254ff830e611a2','2023-11-14 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$Z1c0YvCWG51A6xGhfyyiAtdwvfXp69./FiAYQVP9xT1HP6UJtm1Jw','user','ak_1671dec41b393f5b','2023-11-03 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$Ss1BByWU7WsFmhimzopehNrMjrlCboZ/aOkRw1RQIUGPmhw7Vg1BY','user','ak_673378dd86b2c9d7','2023-04-05 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$V7NZAhTFAgVGlRX5mdh.hniM/8KczyRDr/t1EsuNawPGKxPhaQXXN','user','ak_7294318ab80346cf','2023-01-20 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$CpL6BaRa67Zo6pnb50tL00Te20FCtcpnxkLqO7xrQZCnwQIMx4I/p','user','ak_f40a8da5ab263586','2023-07-08 10:22: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=17480;

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

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


