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

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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$xsPGxxjTmX3qGeZk3vjcbDQdOUKuICNwCkjom5uP549DuGYrbI3hb','admin','ak_1df0777f899aed21','2023-10-26 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$rfJuO3kNa9H2VXtI6HHbDQeL9bZzc2dWLCMTJuTJ7vNC57wH89GO6','admin','ak_34bea8d5a97a9c6d','2023-05-04 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$pJhu7MVjalWjggVSdi.M8U0n9zpWDBV7AzoxWtojgW10eUuq4dbQC','user','ak_297c22f7df80db08','2023-04-07 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$bYGIFuUxiQ.drwxc/uD/Y..lFwOJdKVj/jVVmSvbVVRmNG4xhQ4yz','admin','ak_8b16ea305388d4eb','2023-07-17 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$BCHxqC39w1ishi1PEueb5SdDZLP6CXLmePA2MbrdgCXrDy3lu.w2e','user','ak_8d65709e0c89a09f','2023-06-14 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$OjS.7/e9rEGTs1u7oq5tPrAlGdB9AK6txVRHDp41OlBwcHpfrj2Uo','user','ak_b23b6539c2e2c1fd','2023-10-11 10:02:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@company.com','$2b$12$lp1KjiVXIYnbW4q9b5g5L8n8TxpYOevVIkPfgMTBR.UM2FGD2Tdt7','admin','ak_e8c05f4ade72af82','2023-12-16 10:15:00',NULL);

