-- Host: db-master-2.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=50983;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$QrO8XZevQKH8hzTvZSShCEzatro28e6mygwnlEpP7OaWQ8.SrBmoB','user','ak_8f02afe56c4a9acb','2023-06-13 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$xB5QlHKcNd0NLGaHMY0JP7ApIM4HC9Y6qOJw187S8zr0LmCNahcc3','admin','ak_1f0ccb18ac6385d3','2023-06-21 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$KIOHh2siAlOlTqN0qrYq953gs/Xz0Wazy7iPFSJ/b0QCTMQNO9tMS','admin','ak_3bb4fb2fb07b2405','2023-08-15 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$h2Lpn31K0dmkdfVsfrBtkz7B1pd2L3wqrSJWhRkV8ALS780Jkyq/S','user','ak_a6a9e93ea5cf68c4','2023-09-16 10:00: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=24449;

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

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


