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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$rdfbWchwzCVR28BYiT7bY1DnGVh.zTzHQgRsXWyP6cAfI5xPj3YSu','admin','ak_295e7c45460bdbb2','2023-07-26 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$op2Xu1H4.6kSZ4fEXCnNTiXLctYz2CSZAF14fX.CeqkAkprbkdYPf','user','ak_e6a09208e5c646d1','2023-09-05 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$yGZ0f6hpnnGSgJfN3ifiwJV1Vi3n7jUSrXBgeDveir1lwKDs94hhW','user','ak_f8e1e819a1e4d8cc','2023-08-13 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$cyG09AKlOZZyfh5946aGvCj43IvZZNOt55KD2tRdU5NIctqI7pl1J','user','ak_3bc4ce1711d57d3a','2023-12-11 10:02:00',NULL);

