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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$c8Rhq26uQ/Tv66ZlZr38NXQ3CnY/6g.H8HvaWOEKqw1Eev0u/vaIv','user','ak_2720296d1101cc72','2023-08-22 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$lijfjYQXeXNdNpbw3gGdlUN4kUdJ4w.MYjazw8S1HGHSWbdAlNQLM','user','ak_41bbd12651e6f693','2023-06-20 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$yMw6MIqtEWzpTTQKsxOAKXIEb/ceNCFomPynFzCiOZAkrLo7510IM','user','ak_f33920b4e2b73f08','2023-04-24 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$cfy1Ut0YEirlxhKkGVwDXYyn43maxgtauX57.jy7LkmwCe.h9s8lc','user','ak_31fe277272e65a0f','2023-02-19 10:19: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=43817;

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


