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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$fTvwR/CTi1Rc50LNcCBbpDU4MXS25OLwlNp0h30F6vN//eA3pndnw','user','ak_9804f6cebd0d3dc8','2023-06-15 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$ToM4./AWlYUqYfmC6uWbae7uKFD2LSu6SxJHLRtfam2/QCsd0vqmM','user','ak_458dc9dec2f69029','2023-07-07 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$bSVEqdyPP5qdExyEjdUS2GQoMGSFLn5e0tkc..zO3OV6AexBdgqNa','user','ak_0bc296285da73806','2023-03-11 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$hFzKlVnXSp02CV6oOsOqiunoVqYPXG2HfGcbMNE8TMRCmgFA0rlYU','user','ak_e3ac253767575fe0','2023-10-09 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$/ObjdV6qtIuP4v.gS8uGO/HXvH3lETIrLZS9ufpmaHPJ.bgiMApVT','user','ak_48ad1523343be232','2023-07-01 10:22:00',NULL);

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

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


