-- Host: db-master-5.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$NfwXseTsl2GEjSrD8HNsU.F4bgyj3R5eBEZ.rjvPkvG6BUgkCF2LS','admin','ak_01c4026efc1ccfb9','2023-05-21 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$C7hmtq9jS/dIluRZNZKjavzH5vnatGyVjjFgDVjYdUjf7mWnPfrJd','user','ak_971c0d1ef969e59f','2023-03-20 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$NPJQOkkcZb6LTZmN5RTuEs2l93ZXSfzgxsOV.BbaAtH31nE36Jqak','admin','ak_64a2bac6cf86758c','2023-07-07 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$1a.n6nLQzJjXsYQGVQpK2jKddfPEckYuAsJknhW549QiGHTFFJViB','user','ak_13a9fcb4ece2f1cc','2023-09-13 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$C2Y8NqUmhiipl64e.HxDnjOPFAxRe1pOS47S4qLCmULA110g.Sosw','user','ak_45bc40493a285d3e','2023-12-22 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$ZqyIn95hmcUB5NxG/LHbAzT.agctkJm9ip8EvGaq/g52KW88vxbWa','admin','ak_906fbd55cef7301e','2023-12-28 10:12:00',NULL);

