-- Host: db-master-2.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$fCoumsBkDo1XdrjqDud1M.M3BH/jSLtqSwniztlkjPAGGtuO1rSDX','admin','ak_d2022d60ccde09c6','2023-07-27 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$5mjgllNKEpx5pNhgfkXnHrsUSZOwfSQns4i5xRNbbYlBbHNhNE603','user','ak_099e901e4bc5f099','2023-12-26 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$Hlz7Ir/pANw346xxS21aHfJcx5yzE25lPp9fC4XHy6kCZFdjsiqAz','user','ak_99482bec4dddd7a6','2023-08-25 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$A6WYUVTaanCAi1eY/URGM.KOLHYIO1LCwLK46RLktvFaegnhnvyAB','user','ak_bf2d7e256c1391b2','2023-07-03 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$CcG3eO3bihSB6zw0n/VmsuwYd1cjXJ4RM3QMdTMhRjVuR1PxXx/Dg','user','ak_19f99de432b4d73e','2023-06-15 10:18: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=13156;

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


