-- Host: db-master-1.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$qBAahRkRvuND2gwQI8/nNefHcvvLg3ENSyVeyzGZU2Nqh7DucKmN.','user','ak_ca25a591fbd4752b','2023-12-14 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$YV5wMBSyP6hHaKesZsCFTwBTKiABFBavrwCBgwCPdBl9UPAnDRN0S','user','ak_f789dbeefc155528','2023-03-11 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$bcVp7yh2vPmyIhHva131tfCymG3FSF8cJVR59UqUBHDIquiUXkYrI','admin','ak_4fb9415ee16978eb','2023-02-15 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$ZAoxQinuIWRT0FAmBSSWzqQFV2iIo1SHIAP9dBF2ConxESF1Hxsw.','user','ak_cea7645dfc981e8c','2023-02-08 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$QckIuO8w6IV9M80JTcZlciQi6DiItxD8IciKvy164ApNhj8dt0v7C','user','ak_99488bce99cc8560','2023-05-09 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$xH3e69W8fjgHHTn6imuSIT0oJ7w6p6NmHcK2ZypJNaU.r6hm8gIHy','user','ak_21c57ccb88baf810','2023-10-06 10:06:00',NULL);

