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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$avmsCoZvYlptwZNwQvrlTmEesBW8ZVG57oj/BcumRwRuKo88n9LiJ','admin','ak_6f3689b8926c4c69','2023-11-08 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$SVJq6m9hcoUGHJYLbVbnC5FeOP.ehd.H6tPu/veHzliciOfMGlyaI','admin','ak_138e6e3096acc544','2023-11-21 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$253H27zXn2A4Otpcy3pgHOoswq6SSmBia.3crygGc1Nf2uQ9mt5d9','user','ak_f1e475785814fa18','2023-12-11 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$gbY4NA57/sBr95Fk08c1S70AnIfWflogDaErr2hSw73zyL1/WWN6m','user','ak_2ed3ace9c4db7954','2023-06-23 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$RRagMtwQhRTgzbOVjgKBqF4bBFBdD0TFHjyXgv3LRNlDjLeDCSR.a','user','ak_d1f39edcaf8ee707','2023-11-09 10:09: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=38865;

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

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


