-- Host: db-master-7.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$nijwhTbo..GNWE1rLtuZ.Vz7z6RKDCcmlbl5.ClOtXmtPIOEUOCiN','user','ak_56bde1e26e8e4ec4','2023-09-28 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$RhpmXsyl4CZPT3zQx34jEbKIQjI5yovxTt4AlAQHUzxde.4JVD6BH','user','ak_d0ce4a59ae038033','2023-04-03 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$7eRJPihEKGo.xDcVrHeoHTXvKf11hunryVDOktCKEojNxaDbQ4tDA','user','ak_7594cf8250fb4d28','2023-06-27 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$6wIxfgPizkKCBm/bBL1xM9Ql1rB.ctZPgij6vtScN0fJblpLmAotd','user','ak_bad54cdf5146b476','2023-03-20 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$vVN4.YoSbynb1wcJEysTbOsvD23jGECyKfqQTOF3GpbE.pW9T9DMp','user','ak_044f8ab30a599932','2023-07-16 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$FFnvbIPch/Su0MIS4nICm9jCHLMeb.iYuQ0Zm1ij8U4yzaxyG2.Oo','user','ak_c2827ac14fee5276','2023-01-13 10:07:00',NULL);

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

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

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


