-- Host: db-master-3.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=25813;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$pn74uEsKhp1tQFWhmQvEzP4/7lIisEX2/QeHXEKoYerNWuz/s8vww','user','ak_918df419490972eb','2023-11-28 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$umPic5y5215o16ZLh6DhPImIO.4rRv8V3QJJGquuy8xRalhSKcqI8','admin','ak_27a88f0ffa99e876','2023-11-07 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$vU0HaU4BBK63l5yclAY/vlo6N4nvTvY0d4F/nPles/cNb.T/eeHRG','user','ak_ad4a193625f9d736','2023-06-02 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$6ZY1slJ2hJebZwJhegs8KAqNE17X.MJlZvagHjQQ8UYZrAoSfNId.','user','ak_1a7543b8f3f0c08e','2023-12-10 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$wP.UiVQW1r4eikZqJPZDUfr2glygzV0pSpJFBZgaCAz5jpojzXVCU','user','ak_32a9d58a265c6ca4','2023-10-04 10:14:00',NULL);

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

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


