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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$H8VflqerpCYrLALHeXEBSuThB1wWlubns8Cz/aAzt0l7bmuZoTQtv','user','ak_fc43903021511a8a','2023-05-16 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$/v0.IRWxhmHfsLu6C7tkSJmQtxDnHui31ScpEIzE4IYGlAmlk186r','user','ak_703221d1cab33c06','2023-04-26 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$DC/prQAUDbmu5m9Rg9h0qDicFGmmUuHDVgZ5ODdRuErxMNk58YHfZ','user','ak_6997a333223a0a3b','2023-07-28 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$vk9Rdj0vqMmKchCIK/nSwq8IzEAQeQn2mDb8h3nS0cj8lTwpZmCro','user','ak_1ade3c48fd1a7c39','2023-07-08 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$5ODaRkA6wy.vHA2pq15s0tB3Erjf9YKjL2X1JXXrV.2CgwzcPIxfX','admin','ak_e888b5eebd747ceb','2023-01-20 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$/2Vqnu.V4J/v/UIHDQH5HlR3jinIE5YMMBNOok.l29cn9KMD.lyf4','user','ak_c391303c8d81971f','2023-09-21 10:03: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=23907;

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


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

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


