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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$1n6PYxJ/HV7PjyhX4NVXhl7yJbr3upou8xpeZjSlh9/iCoMALm1gl','user','ak_87d2163d39765ec4','2023-07-03 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$rrzK33clL/Y2WeubXIGhsDnYCBx6j70w1tzll6F6hkNn/ATAMBPV1','user','ak_fecd90a9a752e951','2023-12-18 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$iebdb7lYPrkODydYaN1Q1q/R5LlW7lGQILMaBVonh98tFdLdYV/oH','user','ak_056b25922a6f5c72','2023-11-17 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$hb/hIhYJv9v.xDUafw7BvclDCmH6E7HDxhYjticqoeERw9s1dKrEF','user','ak_d83372ceb596667a','2023-02-27 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$YT2kE/AH4Mh5bV94DUNu66K/7Tn/zH8BkcxSksapPaNzUA7fNiXYB','admin','ak_b87d7be248f41d01','2023-08-05 10:09: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=7436;

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


