-- Host: db-master-4.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=37449;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$elL1Ak4Ii6/hoAxj44b3dY57hM09gQlm0t4XkK27g9eDotRoujzBw','user','ak_87f7fe6c9102ec0e','2023-12-10 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$/EZNuK.Pucw5AVaGMwGObnEFX8HFULkFDvRMpDJVTP4HrP8rdwpl9','admin','ak_9c8c5bc450348444','2023-12-13 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$DkZ.xEoQsRLP5ANvsl7yijQDn/CUKvmX5gC8hMcnXLR4jTc8hpIGR','user','ak_090d5ec1c43f62cb','2023-10-01 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$/tfyKaNJ04n6MTC1UCkYeoWv9CrfEI3hUy15b5BtGBs12VJ2bSKcT','user','ak_129426b11014f70e','2023-09-27 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$1OSLZz18/OVNtEZCvVHZkjRoaKGMFypuEQ6ovD6Jgber/ICN3uK22','user','ak_0c0d00bd36993b50','2023-06-10 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$9Xd.SNOm9qrYseH4ZoiNPLXv8dMD0jVKdW5hhYhz8yCaiF6yxwuem','admin','ak_d5003ab3ceb6d82a','2023-12-13 10:11:00',NULL);

