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


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$E.pejJaqa8PJzIANF2V5.VQbWx1WjXpKkzm/nMHKpSzc/sBK.pO.B','admin','ak_457bb48e77058cfa','2023-10-10 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$PkNHZLgFk5T3oDdapFPH5QniGYI/p7DZcscmfvvxskQKKalJqH1hI','admin','ak_7cdb1477c094dd48','2023-06-03 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$nVzyqaX/TuR0h3./u9TRB1hoSfujERxTOzUn2dmBuJoLMVPkmfsm2','admin','ak_fc055ffb1e82fa0f','2023-02-18 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$YNvmXuik3r1iupQOfnakC/9j2XGJcDDP/kOnE6ni9cEqnYGcGgoW.','admin','ak_47d920f13bf8f1af','2023-07-22 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$/O.Q4DsK03KZcNny20x8Zd827xGX6wqml/eRyzqqHF9eL0Jm3d2Jq','user','ak_27e84b54c4fe5ceb','2023-12-15 10:21:00',NULL);

