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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$s9nGcPxMHpLzWd/09A/S2UXStVHp8ldWW9opTzUGhCGl065zW67QW','user','ak_831a7ba53f28a836','2023-02-09 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$NhkS2Qe.khq3qr/34dXaQ2VQQPgdBXWQ7.7J11HfvZm5Za16y3l.x','user','ak_18aa348fad57de8a','2023-12-28 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$b7ssddpl.AaDP8PpnE9nJJb/PZyy8ZXouLMbqWbZMntY.rO47j/BW','user','ak_4ab958b924f4da89','2023-11-01 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$/z.kxagmft06p7xhMSQkn/e4XLpfC/0knIov6bIeHvkzjv9xUYINm','user','ak_42f2a3cef7c5652d','2023-03-17 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$9b/K5BlbCQhhUaseUz9NZwQqyin62hQRpqoNdWtO5xZaaejflKzCr','user','ak_baaeccfe19301c47','2023-02-14 10:05: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=47046;

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

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


