-- Host: db-master-2.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=31583;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$wyeIXIyquOZ/w6epDvJazorRso/qRh9PeFeVFrJpuz8ZNrj674o80','user','ak_ca10413cafe7bfed','2023-12-22 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$HcRqremwuLCp9.rBxEDvyEM.jbjiqWDiO6lv9yHE6oZcy2kbWV3yD','admin','ak_75b6e18eaab1cb85','2023-07-17 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$S8PL5N/h06MuzmZ.II8OspuDe0u/KUBjsF/UIh2M.ACYnfdjVqRTL','admin','ak_fd671015bac32a22','2023-02-28 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$FYlC9F/.H2N1LtA0cKlkF7hxgJGrsbqi6ovvnrFGCiIXVAdzLwXsu','admin','ak_5edeea773ea9e3e5','2023-04-22 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$LPw7yVAiTJ.SEKUBju5KVk1VjJi56RvxBs8d6sOaQXat6.dGHJR3P','admin','ak_5cacf6a5b60c66a4','2023-11-15 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$bFDRWgmdOfQmSDkc3El6A6UYaFxJ0TI9lvO8XzKdDrOZ8HBUzsNwm','user','ak_8ebaaaaac31de2f2','2023-06-10 10:11:00',NULL);

