-- Host: db-master-1.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=38639;

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$iUUH0EJbZ/p3WQf1I2gWUJEeDQvH/b2c2qv3n3BuGGclp80vKyH4h','admin','ak_d2c467a97469bff0','2023-02-12 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$hE1f.WFyrm3tlRNFt6c7uN8GedD2R3BipN17n9EEjKqeoNdQ07a8G','user','ak_78608260d96ebe48','2023-03-26 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$vuxFa/YFM7zlITUkTnSPsExZssYWORIyl5oMh8A54x5QlyeDY9G6i','admin','ak_a8553fe9a2a1e5ff','2023-02-21 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$E7PINkbtTO9cTc7YFtLqVKKPeqsdDLO4cLs6Y4/VB3rFcxoNW/lgs','admin','ak_aa3d990272be7745','2023-12-21 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$hh/Jl8G5euDIE4pZLt9P8L4e6khugKq6fRy3UvUsU5i7gqrdV7ET.','user','ak_e3e1cd5b5a1494b1','2023-06-10 10:11: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=3427;

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

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


