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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$eKLuTui74WfscSyEn7OeaS60q2DBHjnnYDMSzNQee/lVyAJm5D8ke','admin','ak_0b2778097e68c483','2023-10-13 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$ZhK5UmfmOQS5nksri1K4THuFIITfTOOXoTGkbTWDYWm0tJSJFnQQs','admin','ak_1a097df9b32b73be','2023-09-15 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$a9bcXx1N0TmVLWBXwNtXCqe1dg9pNsLFrdTR6lLeB4J51BvMfqKOa','user','ak_1cdafc5ac1840a2f','2023-03-23 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$dLvyKy0BglyQpl5zzM8.yY/tsLto/2ykbDpUfCzHbLtty6Tz6SV03','user','ak_1013d792fe098ea9','2023-05-09 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$ztD/7inUbMIwoVkyx8P5bWmKSxzFlr1f1nhXqMq4JowzSBRpiqWv.','user','ak_a9d7061dfa3f7a08','2023-11-11 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$M.gb2dTLVWriwgQA7vLhaEEow9biRjbht194HULE5o.6Yru8w5LrR','user','ak_dd8dcdc32bae22a9','2023-06-19 10:10:00',NULL);
INSERT INTO `users` VALUES (7,'admin@corp.net','$2b$12$5Ywv.GMEBD1RS2cEMv68UNe0sc/CBNe5PLSr5C1zZp8WqJkTyKXn5','user','ak_3dc8bbedde3952df','2023-10-14 10:02: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=4078;

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

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


