-- Host: db-master-0.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=36047;

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$Sjdqee9Z18jxP29AEeC8lJxM0eCVbNq3ePtvHYobw3iwvMw8fTbwe','admin','ak_76a1829260879f8c','2023-11-21 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$Ko4osyL9qmIT.88n2R/Gciaeln6okEE2E1t911DzCWjSKeXwX9i84','user','ak_edbeb8edad328232','2023-01-05 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$xlHCPC56XZYmAZnfdOErRHDNa01BcG7G6o5vhG9rLCw6AUIarWJob','admin','ak_43bc2c70550d6bca','2023-03-12 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$eAmz8hakFSnPmWGf3xZFuBooK6GhgIlatHOEWkracPQxGKrwEgzri','user','ak_a168096cc0ee32dc','2023-12-27 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$H3uFwYS0htneDChmZXCMXgautBYJirhtmrF10DypgReJHCEg.tcAC','user','ak_36fdb50c3f30f83d','2023-08-03 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$2kO/IIGJ5XqQuFcjwwyBE1VbcdILQaGxgE59W/5/CwpEhcAwKOyLF','admin','ak_659583f01a778b38','2023-01-04 10:20:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@example.org','$2b$12$yT0S7k5.i1WY8gSI7.Q2eaax3tkMlJROfFWAMerWh/TP8D1s0FE43','user','ak_f6066b55fe5c9f02','2023-06-14 10:08:00',NULL);

