-- Host: db-master-4.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=36250;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$56D7Yv.nxlR1cuUw22F9ntW9HLJpE0m1gfpSvnrE0NVEmu83flfej','admin','ak_5e958057f1dda42a','2023-10-12 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$XO571Sw/IoFtNR/n439JTIRSMBZ2x/DfnDF2HKhe58SiDPPPqU919','user','ak_fdf831575e9c7bde','2023-04-09 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$APRUP5owopxvsAcmGtWfmYBOX1qGFJac1PR5HSRPhPky7x8K84WsJ','user','ak_896570ffaec96a2f','2023-09-14 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$P54LezaYvI9FjnCqWTQmV5gTmVmbYsIBX4fny.A6iQsuUY28oVHiu','user','ak_a446b4a52236f87a','2023-01-03 10:02:00',NULL);

