-- Host: db-master-2.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=23350;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$lOtQu2nB/RIW0NPYBmvws8OnyUooSE/Enjl1sOqW20Xh.9CENkslp','user','ak_986aa2663d2c7f66','2023-05-27 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$fSs9nxiMlHsf7E.PDCpova.SWfxaT3MwcDCsFXBR0JfqH5P0UZmLr','admin','ak_5f29cdb800fcc664','2023-04-21 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$ZhBCpPHJbGSUo3JoaDC15UK5dlqpDi6pXisibBfX77Z6PUaZfmYai','user','ak_323d15d33b85f3fc','2023-06-19 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$8AzklMg.233lThejuZbaH2IKTWObZ11mvvPqRnk/j1udYif3CpJmy','user','ak_90014943c8de1dce','2023-12-28 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$OTajns6l1/uAdj.7/qtXK7FQsQw683u1Kizi5RMVveK47gsZ.DxW5','admin','ak_79abc6adca7c21ed','2023-03-10 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$UlegBoQVQ/dbf/MiL4mgSZ8Bcm5BZUal/WeU3k3uWHIDSWywhBXLu','user','ak_7a8928e45d0fc133','2023-02-11 10:07: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=4995;

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

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


