-- Host: db-master-9.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=6677;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$7XTP80TtvL22NDx8/g52kVZEGsVPF3/X2xiU3qUcZBqcptNVaDvZY','user','ak_ac6fa94873bd3ac6','2023-12-12 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$jjSNWzJ4oJdFeDKCgwh9JXvD/Zfkv9W7bR23TTbqrZBiHQNSOUizT','user','ak_ff803f3332f92070','2023-09-25 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$jcxkhQGYh7Uwci5fUajnLlGotGD.ByrffD6kvHBadoR2xnFsXuZ6F','user','ak_c8a5d92b513558e5','2023-08-02 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$nSwTDaJlIneJC4M2KxeUDte0X1xdIGQ3EnlM.AXCxU7ia1qKAuSy0','user','ak_c04e11e4d70dd892','2023-02-28 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$TM.h.i7KFtJMOTqWDubJoIsL2S0pj0E5izm7rs8/Qlrk1hO3qHEM5','user','ak_d90466c25e96b3bd','2023-12-06 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=5070;

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


