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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$uB/E2cfb6Rp1tqiyrH5fqinIhhzF1.CA0Egv2dVfqNDn7o6ltEDUo','user','ak_9bb4890fba446c3f','2023-11-01 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$/akx5RcYwG/MbtrU9/wKNcVC4ha5Q653Lrsg4tYqOWedUoWoQwMe8','user','ak_2d95e7acfbe4e373','2023-05-05 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$xACHlp/p7sk6d9Er7DR1/zQBuN.ZkSaHbiTVSTtUW5Zx5y9yeJOnZ','admin','ak_5a544a6e0094699f','2023-04-08 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$zQEBlRWxeRVBNFmoTKhaQHU6QqaQy89DxsP5/xefEjBw7xSBE2KKM','admin','ak_54adca68ae767087','2023-04-06 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$BqDs68zxtigCCcTm9JHmPH9CxhB8hehVI.qpS.fBSmu5i9x.n7Q88','user','ak_a48475c87ac81f80','2023-10-18 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$VJ2/3Y5BOjnzw39e/RpmROIKlM15D/De6L00Xduzc8twVzEER/36c','user','ak_316e50ce75903d58','2023-08-12 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$HIH.o./PoPCsd/rp.HsDpn0XufOw16agmjI1UIxMPU7RBXfw3WZO/','user','ak_35d25da795c3f10b','2023-05-01 10:16:00',NULL);

