-- Host: db-master-5.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=2696;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$qD5Q05tEXcl/gwCSih5BnlwWmgba0T/ckpaZ5YjkP34crOpDCYrnN','admin','ak_6393f4d454344c69','2023-05-10 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$0T.ng4abAr7P5HkGvpTAIkLyuell8hd8BrpAGt8VZFU1FkBa4TgrT','user','ak_982e299cc3435740','2023-10-17 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$HMisHiZYTyBJRKGaH1MDMbCJSV3p0AL9G.dRQ/QhN4JoTKGX4drKu','user','ak_90714c9c4133c7e9','2023-08-04 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$JXlhqnRJvc1eN3R6j6VHp5gX3AFcChSrFfPZIS3qIrNdLupXbRG5w','user','ak_3236eaf4e58644e9','2023-09-16 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$wjQrSHxa3A.zWtmpta8GM1JqRQF4N9kXp2hNUIpqB2vMPML0J.Zpb','user','ak_b20ce286a80e447d','2023-05-20 10:11: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=48127;

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


