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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$Zs823zRWlGfqYSqqJbUXHZIO8b04YOjRF5TuCEIX8dCA/DsTuoxqT','admin','ak_898ee32c5365c281','2023-09-06 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$8z6j4UWqjAiudvy49OApzP60FC1Pet6rNO248ATJ7X/ESRuhF1YtW','admin','ak_55b739b50e04e9ec','2023-02-19 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$XWNxPh0BCvK3fFrqUrPfmgDKTdCt0/KVSq2y7AT7ERs5yN0DNeq8d','user','ak_ae3677489b687c3d','2023-08-17 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$wXwJo.1mU0rBoucK6G8ZMv3H6BtgmKExbhttKNkp.5Axi2pIQ2g0c','user','ak_4a8cea7d628e2ca7','2023-01-20 10:14:00',NULL);

