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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$yjA6d8JQPfO.tIUGgbAG7wABT/kiOhRP9de9ypelHPsXubonUl095','user','ak_42a41ac658d369d8','2023-12-14 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$Wf/E2qF9f/Qg/K8E8jLvQgE9TDEDcuhgllKL5i3YnyZ5yfHeqXdy4','user','ak_2a1de998b584b6a1','2023-06-20 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$uOQ05078mQEh9aYBHbq4gFDBhj5H0ow254swCzJAw/ZDxQJHGyB28','user','ak_99d8ec82f777a6e1','2023-07-24 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$mIjRJVhDHWJxJAy.XQ8N3Gn/CX6WjC7dyHAUC1lputiDDfxJlWe54','admin','ak_f43db0a835e9c8ea','2023-09-19 10:07:00',NULL);

