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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$/n/95DjHUbhGtr15IRZzplMp0udZPR1V3jVvPestDVOlGMrscLbBR','user','ak_00bfb204c413dbe1','2023-03-22 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$Ze.6PwzBIYHwUIbWBz2mgnVZOKKtE2duYYxzVY8LqhmG0HuF2jbaw','user','ak_7d1cbb26a3780895','2023-05-12 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$ngFYtiYSfRq4Hof8PTvkA3T6Xe4emulCQ1Yy3ry5AFLqsQfTOPkDb','admin','ak_8ccaf637bd040b70','2023-01-05 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$MxinQysBSGzUfw6cXFiz1raqmAwpOAmMl/ai0rgQeoZra0cwtGFGN','admin','ak_d4224b36bfadb27b','2023-03-01 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$FcWYDMpMYA4Ox46yq54uTKSyFCGq/nGoJYJon2r98aCmU91bYWeXq','user','ak_d0b7231209b30008','2023-10-11 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$jBhZeiRF2GZtJz6i01ir.HF32vxyMLD/.cgUrYBuGjLzeDAcqMkdZ','user','ak_f64bb903a78a721b','2023-01-27 10:15:00',NULL);

