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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$X9yNlVPcukrN4wC34sOV8H7lEkZNlwYYZb4W2SNrV8V7el.Sns6A6','admin','ak_3c04de58a619b87a','2023-10-21 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$bnT2g4gp9aUASAQuFSPtQFHlzWGhAKL/tG6K33mZNI4UHZJzA50K1','user','ak_2303ed01827a2fbd','2023-03-26 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$2v.FZUsK0AvNcryU45SyvN5WnWj5yj7uT6hfWPcKFfaLE7Wfmxcj2','user','ak_c58f0b9e95367a19','2023-09-09 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$si2jWHR/vi7VkNMGiUSPQ.U3JqlpygEV.1FIlp7EyUbzDeGJzASp6','admin','ak_417f72bbcfdfda4f','2023-02-04 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$wKw6FZswJstmeuRazOO0j7czsbBm.Yb0JhJriNEEJDph9voMVewUF','admin','ak_395baa4390baa9cb','2023-01-02 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$d29gfdEq41BY3wAqaobm.VwELQvby3ZB2N0Q1aB3Q6Dh0f.DGE0yX','admin','ak_9bfecc2af4630db8','2023-06-14 10:07: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=4648;

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


