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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$DV2jGlZDkUTAVe1nj28KMZvE9OnDhBsun3ws4enT9cqRtdPeUMABh','user','ak_ac289f9f3830ffe5','2023-03-10 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$cxbXzvVYQtki30L4W5Pgdq1f220EDwoJxhWc80ieLR6JlU1qcpJ1q','user','ak_af7bf76c2d6c0e38','2023-12-19 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$yc4/diT/1A92Vn1z3koFnCecAkr29wKNpt1nMotN4jNuSG0E7oPzg','user','ak_30b8f23cee331a0f','2023-10-08 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$muDoNlmQ0mpS0F0KwNrBEDRjJXHkPXjP.3YhRtGE.E30ri4.467hw','user','ak_37b4923fb6254240','2023-01-18 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$olr1mWv2peFpaQ6Z9K/aIrD55Tl6sxw7HspHpLM88GgF1dBq.JFzq','user','ak_974882f588ca63d2','2023-10-09 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$RdMRXCmkD6XqCzNkj5uuWSDHjjXvGkQe44/11fWri9GuCvboR5MA2','user','ak_c161b95c2fe72c1c','2023-12-22 10:18: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=6704;

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


