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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$yoSC08Fryj1EWDcje4j6Q/PdRFdY8kF427AY20FiV1f1t6mDxOGVh','user','ak_24d5b88dadd0e940','2023-11-07 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$7h1HWAQ64r11BJR860GuxneC/BQ71iAsAu.2L1WsibGd8YrzCqnzf','admin','ak_8d3f450cc57fc9c1','2023-04-01 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$fkFVzkjIdBMsQ/UoRQfkJLyrqJRxeLUkm8y378VpDiGSAL4UxnPJ5','user','ak_c8631dca6bb94778','2023-09-17 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$FqH/3dZfte30nmmuev4D89QWtpmSRXaqHn81WY7QKCL0K43d.a7gX','admin','ak_45195663efefe2a2','2023-11-04 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$lMgQCGcDaiQuEjzkMbthAtAK/yXpaYK2anvPuUTmVbYL6qR6YCVE0','user','ak_f394d2d962a29d89','2023-01-05 10:20: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=36073;

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

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


