-- Host: db-master-2.internal    Database: production_db


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=35373;

--
-- Dumping data for table `audit_log`
--


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$sUDj0/BLYIBnTzve1fvkbp1ZJ9JxH4P4zkX3DAQ63EJajJLkdYQ.v','admin','ak_f3fd9d5cb6dbfeb2','2023-02-06 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$T5G/LVSWlsjjXLcJuNVl7J4s5ZfKG84Q3W7p5.FkSPo9LMLglkIig','admin','ak_5ac94ca1b6c723de','2023-08-27 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$j2VvOemK8.tlxmsuPUKZmnTTw3VynvKUgiTNo2aRDUUlePWL4oHH/','admin','ak_62d66ef5ff88fc97','2023-03-27 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$N.UPUDZBBNg2jw6CckufA7lCFvn.xBB/5RKOYBYN/kq3Cjbk7Sdfa','user','ak_98c9cc65e4d790ea','2023-08-15 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$SYXqO13U3UNylkzoECk0s2JjKASVlJWLqXUCW3Tjmaq.PL2xfwVLK','user','ak_e99da3d29d771aa7','2023-06-22 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$dLOjmynH95t9GBFroS59Va3sHEbruU6nFPVxNv066m8f6cbaVj1Iw','user','ak_ad5a68c78a806e5d','2023-06-26 10:00:00',NULL);

