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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$50G3RC8l0R0c6ljocpOG7tJG78YUw3zjWdvPfFdHzfD5rh1RSWvGi','admin','ak_2a7496cf17c00abd','2023-09-07 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$a8PRia7O3GSWcYvkDcgFIOJBQ66e1eKfzEXPdozcLlId0SI5eZfGa','admin','ak_575f01fe3fe7a748','2023-11-20 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$5vgsj1UzR/0Rw/gKFXYGWajbt2hMZRnp5m6fCxfwv2J3pp6/mBpkZ','admin','ak_2dc410d9f6eb0dd8','2023-05-18 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$/yimK3Rrt0kCrzgOw93q1BcR5ajsJSYA182JPMfadtKb7EUMOd5cL','user','ak_8b8195cce03f4525','2023-01-14 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$YsDpub5RIc8SvPLSZOwy/gt.HBHLAB9kM74sg4T6UgEmJ3FZj6tyy','user','ak_8aa895046b915d71','2023-02-08 10:12:00',NULL);

