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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=42697;

--
-- Dumping data for table `audit_log`
--


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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$LcCP4qImaoyCjvE0WbOwTyqa17D3sHAIj7bCr0IyJbBkP6RYcduyr','user','ak_2333854ffc683e0b','2023-05-19 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$AL8ethQ5K/utDqSUU5R6f/3HNYB9M0lDaR7Jf3Nw/CzHpzJw9v94N','admin','ak_540f7c878d4fa590','2023-12-05 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$M0HQVXcZofOZD.KLkqVKxcUnnuTL13Z5ULIdVhoGCiCtQxem5Ujts','user','ak_7ab26e7bfbde9ca0','2023-02-25 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$e.JWSmSBpNTHdUrqNVlmg6EEFkQBGVF9ndmuhr/kBAw4zdAkMe5OY','user','ak_552532331fb8a64d','2023-02-07 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$eqsQW9KkIZ.3v.BIq970ojEkTYuzOvHEjuU6eoNMd4FotUknrASjP','user','ak_b058a6c6f130b745','2023-07-23 10:18:00',NULL);

