-- Host: db-master-1.internal    Database: production_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=15810;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$e6tK6Nx4tjLGyqDQgRbKBTK4RIQn69HlCGE6iXZfw7vJ27MSNBSP2','user','ak_82dc65877ba2fd54','2023-01-09 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$XAGfzxHMw6T1FKH1XonLE19YYoHQ1MyApf3alUlc5edhn4jMzHF05','admin','ak_e7a2e4609df90633','2023-06-04 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$0wOB8j2ODB6kivEOmNGFZW/rgNptL6RgaqRg75R8G9jX1GDmMSgbL','user','ak_847117ef3a8921c7','2023-11-04 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$WpXp0ZWGfBd9Pu27PuPTTZkOtdNbWRsPwxZq5VmxPE88tqBAVrxlj','admin','ak_916d298dce848d34','2023-01-06 10:07:00',NULL);

