-- Host: db-master-3.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=50364;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$gi1pTRzAQ0pSZm8xKX0xpDliSvJC5tKd.EteVx/Cshmel4iXRJT0s','user','ak_a9922a7cfb1ec5f3','2023-07-14 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$ijG49YiM/9I37A0j7liRDBpQ3qKCy.Rxegaqql37JQshtbWjUOEn2','user','ak_7bf138401df011fb','2023-10-15 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$DKeRm8lGlGr.tsRL0TGjE0ZaWYjEo.hqb7IRKRYSqZjL3mYFDeTxV','user','ak_31c1adfd003606c9','2023-10-12 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$ac0CWGVOJJqmjJ1aIDRi8Qt.kf8kmUZ66K7zEQxLJH.oZKCf4GGZZ','admin','ak_177968ddfc7d48e2','2023-05-11 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$QYzHfYWvi07jdwml4wi65EDwLM2rxy/eIHitPQf3lHu1iUg2uu7NL','user','ak_a0df167dda2ac25b','2023-02-12 10:02:00',NULL);

