-- Host: db-master-1.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=21423;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$Hiun6yy/HJhwuLEiXTGuAY.vmew4iywJluaGprblDdrHnqcOp0UQQ','user','ak_fb4546b2bdb0cd63','2023-01-02 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$EoTH2UXdqhh4W2QANtzNAx.zZtNtveEkM.1UsQp6tdRb3lWdZz2Vu','user','ak_c101c9d6d4dca514','2023-12-04 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$jyKel0Rq7eMTHOWiBS/6lPjeUtC4sKlPuE3MN2XhnwyoJFqyafG54','user','ak_5ffee72c420d2f8a','2023-03-19 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$FHSmguidSak2Gu.OYl7ZdwtcQcOCLJnStTYc9DhqX7SvRKtUlPqy3','user','ak_860fdd9ecc49040e','2023-07-18 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$HjWxwA1JSOcc.zfDuVEG3n/N2m4M8jr.Bo35JbnJD0zvmwlsr9DLC','admin','ak_72de489be1c72ae8','2023-06-11 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$CVtTuRspmERAGgyGwvz.sBjtYnahY3//7OjDOiDXERW0xhEbyTf/1','user','ak_e84099bcf2dd354e','2023-11-01 10:23:00',NULL);

