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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$tT51fCGJtVo4iFD8lddIBRIfw9RXm5ZxWA/71ROq6MeXmTEJUMydY','user','ak_87f95240c2de65a8','2023-05-02 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$5YrA.p.PCl0RmP62ORo4.Ji1CcPHebieL/Fx9.tg/zsYe5u88VG9c','user','ak_04bbdb151dafc4d8','2023-02-13 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$V.MBtoMByDmGYGlvg7dKx8um1z7Z5RQXFjMtOxGc2.RJ.YsEPa.Mq','admin','ak_723cebd179eb1c9e','2023-07-04 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$AyYf0xZaH88YIO1XSP9N5/YH0GtFe4PVmUXhgqlYSVQCqYrkwXq47','admin','ak_77f66147e86d3621','2023-07-02 10:12:00',NULL);

