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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$WEPqj.WHRJVDcIGWjWHCeC94DA5lA.U4QRxkPi/clilj0IE4mtOyU','user','ak_a9c3bddc37ec4500','2023-07-01 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$zVx4uWSItsyvEaHhR7HSwEwCPt/XCyY.uhmAXP0rZrXkm1U.hoBXX','user','ak_dd06948bbe926d4c','2023-11-15 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$Xoax1vsJXAzK4RmmhsihcLkVVcDBYsncPhhk0P3pdkKLwH/QubweB','admin','ak_0015288589365f37','2023-08-15 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$Gc0IybLxhCTo49UQNoKyT41aZlPIQGdDfGa..JzJxSJkYMG9jxIGz','user','ak_c34852dccd677a70','2023-05-24 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$DHRAlbc7.149AgDYPpl9284fcyJIaq40BOlTzojL2mMYRHySbyed/','user','ak_d0a84528a829d2aa','2023-08-02 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$2RuH/70yHBomuNjPTMyUj9ltXK/N67/j2N1Z9faoJ0SEy4IOlvKne','user','ak_bc79204c4ad9040c','2023-10-16 10:17: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=10222;

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


