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

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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$W8aspEXn4ZR//HKiP78NhzIt1CnXvcvx77lFfjOcPj4BnSyyzjWCl','user','ak_6ca59d2147fb5769','2023-05-23 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$7PXbZwv3hdiWENxUenZzWa1gJqe8IVZBTC3lJaRF8GJ1DXcPeOyow','user','ak_ef0215c3b1fe4aff','2023-12-16 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$so83XkNkH075OAnC/FeYeOqQvPfUXG1662Hit8.Ait906EPmcag9t','user','ak_f6d1da21418e9c1c','2023-10-06 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$qqEnY20tPeFuYptDedthQ2cfGEEM8tMnJT3akTFeJmqRLwT284yBD','user','ak_a3b3133d56c40a82','2023-08-04 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$fef8SYSd8B/Jar5NOOd39jf1HlN4F1mdFM.Snhhn01BKUpaR0pBWo','user','ak_b3175819d247d20f','2023-05-06 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$RRDgEFmRP5TNUv8jvqUVSED0JH2te/qvIOlxdgLyGDLL5vEStg0ht','user','ak_46c38d50701141fe','2023-11-17 10:19:00',NULL);

