-- Host: db-master-5.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=50266;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$S4iJFt5A5g4gcy6J7V8192QFptx5f0UBR2RzokoOFwbRCncJlIric','user','ak_77a447a49c491a14','2023-04-05 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$uw3ZW4VEA4TiQRfA3ILJLt5JtdqTCFfvrK.7wYC5A5FVsyv0UAAqy','user','ak_45918a89ec500c16','2023-06-15 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$C1s8RFdycg/FCy/0S/F4wA3VGYwu9fgR7Vdn4.PNauOU2sW2dnVLm','user','ak_9a0fcdc3c933f4a6','2023-06-23 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$ZxMZyM/ScNokGBCwu/qDXgdz85t2g/n2sA.3U6XFrjbm7i0wm7Hkk','user','ak_2c8cd979f79f99f0','2023-07-23 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$utyAiBUHEY6btvJvSeVePy2VPFiy/b2OzZQ/n871reesCu.TI0bJz','user','ak_91d28dccdff7ae92','2023-10-06 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$UYmGn5tEE.9S6qp.a0ki5R2Wv7q29ODVzUXa9fzgvexwV6TLQTH8t','admin','ak_50fa7ea1c2bb4697','2023-10-26 10:22: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=12338;

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

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


