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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$e/l7D2dskX7oBoBLWet0c2X74.xoNkY9.3D6HquxC7PeLdfazWmHs','admin','ak_b56c39aba56b179e','2023-10-28 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$WrRzNu2PKzlJwdpeXP4M83xBwEJIFAw5VMevwbruwfdvgIDGUO5AT','user','ak_10f7b134fbb68c69','2023-12-13 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$5p03CjbgUlrP1o/xENrxIAvA4Oq4jPHiuqBIGHfHHUef0m9awiGqW','admin','ak_ccb1a7a9b63deb36','2023-12-14 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$k22iqdLTwRiAoS2xe4QdH0OuNj0b/Kx1himLqz1earoOezLyUXHdY','user','ak_709c11d4c736bb91','2023-02-24 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$YkYe.hx2q5IzJTW/WFCOc.aNz9ZCZKwYBFwmTcS3zbd/KRnnXIz2z','user','ak_63a5b327054ea6a7','2023-09-28 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$2Kvt3fpU9iHtRKDqkTU5B72z9.OgLSrayMv170yvR7ebEoO2LBTlU','user','ak_ea3210550a79decf','2023-11-09 10:23:00',NULL);

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

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

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


