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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$vdn/5SGAgiAv8zDmI3Sjs0Bw6hJr1LRjLMbSGmSxhaSWdLhWsChdm','user','ak_075cf14429e94414','2023-05-14 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$CX1OjLp8LnC/Oc2fjb4ZeWlu8hMN2V1BhkG06Xh1FoKD1GK1sUfix','user','ak_8c2c7423d1e8ecfe','2023-12-14 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$3R/eJbTE9Pi.RZVwgRXaMwE4SX4NbOn/g6Eg2U9tYcdL0hX4sxg8f','user','ak_d4097656de95ecd1','2023-06-09 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$OPcUG3s24XBKbkIj14j9W4l14tTOTtySp6efs/quT4Y9RgX8Gj9A7','user','ak_6eaae2c953e72400','2023-01-11 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$FKSk7RNvWKGUFemHT6adC4ouaGgz5PH2f77Srs8r/TMkm2Go90nYz','user','ak_0691b1c899a7589d','2023-04-04 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$0XfTV0HPRb.bzlISQO1vVQvp5YWiL3tctNQR67Vm9Wpb..CVkHq9t','admin','ak_c54324957a15299a','2023-05-16 10:03:00',NULL);

