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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$jVg0b0dWYI8BNPDksy7XhTd2jr0f38RGDyt6Oq1acKvA0Kv90C9c4','admin','ak_697daa721b725b88','2023-07-14 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$N81qd1mG6aVQlkcPikkyyUEZG19XsszGZcDrkBBEREiSzixyvA5QO','admin','ak_40e2958eb9df891c','2023-03-03 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$gZwry8Oe7zSJx9cklSj.DvDFUXqRI9nYlIKBNjJMJqFhiAsAq1kNa','user','ak_0b021b491d01938f','2023-12-26 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$gwSOCxbswQqhVsUVi/t5Y/tefva5m5b0GzL28B5jgOJXn8.4pJpgI','user','ak_d4c63d91dad479cc','2023-07-01 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$8ZOk357WU7xTHgUcitsFddm9ez31Qm2RLkm.ElW8ZQ6FDFPEBi.Rt','user','ak_18363d6430d9ecea','2023-07-23 10:20:00',NULL);

