-- Host: db-master-0.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=10501;

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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$aj8h.Dc.NU/f4iRLZCLXJXy5.iykoCYPVzeA89CpYTG/Le/N4zgy5','user','ak_cc05a8371f425e9c','2023-01-04 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$u/0WKGBV1ki.Hf5hJfGJm.fTFkpcMDrKTPEg7coNa3GZqEDfXMqMo','admin','ak_d721d4d10f9f63e3','2023-08-12 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$/oMV.SK4fyrt1oSbiCyNSJywq.GW/b6.bkewdhKg1/GKs87PsVZea','admin','ak_8b32dfd30fd73155','2023-06-16 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$YhlzRSDDMk41HvNR1u.Y5Pqr3Z6xUJSNuBG8ag4onLw2AC50b65W3','user','ak_c1b0607a84ee0600','2023-07-14 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$DeRBpd07sVkR.idWOMnLWwulqvkag3VLY3.GQWImYaLgOMqZN5J.v','admin','ak_41300fe09f70bfbc','2023-05-27 10:05:00',NULL);

