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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$4q7gGLGHM8G0gvEI10tE9L0bSveyBzfzOM9VdDXS/TX61h5hhR1nV','user','ak_d224c1940739f9c0','2023-11-20 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$z8LhCVmXVBAvqdyHM8uV2uN083bwiBNiaZzeqJG6pRsrIK0zyFP/N','admin','ak_c4bd8cf087813104','2023-09-02 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$4jDlKg2bdl6MKNEXzNUWLIH60/ap2rzY6wxyi.NRk0rQBIcc1ABpH','admin','ak_0e3cd04e7089e70b','2023-04-08 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$BRvtg4xyyQlJYzK150TVGR8jY2hnFZ2aIj67CO6PaobQU.6G6zZ/9','admin','ak_a442dcbf260955f9','2023-12-11 10:23:00',NULL);

