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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$rLNrogFC9wey3U3bCjhkiJr/TyOc/ZIZv2UFNHvby9z7ZcTG74msR','admin','ak_2198e4156ac3d36d','2023-11-03 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$1MbBJALobOLyhR56a5MqCODLCguPuje0kcqzfNTvVhveaQV..2SSm','user','ak_b96d95bacaa358dc','2023-09-03 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$asQjEuMBkfjsET8i2U.53QSOGrze3Aq35HZNBcwYKxKbm2eBtRpKF','user','ak_6b0fc97cb84e2633','2023-11-06 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$Qeds7Evfj0uR5Nibea6VEEKIDPXSM.blRDQWGMn.JhL9rnudMjFV5','admin','ak_188b390dddab26b3','2023-06-08 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$LdahCgFP5ZKdLJr.0nz45yEr1apPmSA3A7/v68GakS6Z5ZzksVwCX','user','ak_065d68856060982d','2023-09-19 10:18:00',NULL);

