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

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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$nk0p89F0sxo8j3QYywmK1jWQivM0YrXr3sBwa2O2MBt35DXqw9jV7','user','ak_2ad7855249131551','2023-05-05 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$OLgt.ptVBRiWg6nuJUoFJoPgoky602FkKkqSkrq3VRNZbRt.d.orm','user','ak_46b61c32cd445dd3','2023-06-22 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$bqEgBsMJknwHAotabS65jGH/JEPV3Kp4e5MZSfVWWkEo0gVMazfM4','user','ak_6c49263c1d37af8d','2023-03-01 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$9/jw/3nC7yzA5lS7pJ999LDZogiFmEpMab5jY0tz/DOp4EtzwUn4N','user','ak_64cbb4aa4e71f187','2023-06-04 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$t8sBX9cbjkq4KkeMjqagpVcLTXUqVW2r90/3ZAhymQsMwczVg4TDX','user','ak_e8645a6066e7c0a4','2023-04-23 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$uky874hjZazXZGKT5UBtQoYU/PNQID8dXTaoDubPyXAZ2fzgmMio7','user','ak_70dc97d93dc9ef67','2023-09-14 10:04:00',NULL);
INSERT INTO `users` VALUES (7,'root@company.com','$2b$12$H4jCNiTDiDlEf4p2wNDb6QAzQL.LADs3/26VzoZGRt.m5dvL8lBkY','admin','ak_b0f64a4f82125cb8','2023-10-16 10:14:00',NULL);

