-- Host: db-master-6.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$mAZbkFvdeXRAQfu69yWrLrdlsl6TP8XJ/lftTJO5PEMJTuTVMd.M2','admin','ak_e7a468bf971f8937','2023-09-23 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$rI1WHuqtC6xWf9C.yK0Wq1jnk/1jzsNpxF7B/pkCuta3dR81cwGJT','user','ak_068a0a26ef5afd70','2023-07-18 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$EV.mwnXNfQVMPfo0jBphVnfreOOH7psAyWrjkZx0hLmm3aogPb6bw','admin','ak_32fc95740991e2d5','2023-11-16 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$Vbp9oFeX63y6SN8RZ2VMPS7PyLZdlnwOzT2yG.UdKY.ez3u0VooNT','admin','ak_b32c1e4fd6938c92','2023-02-11 10:21: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=11644;

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


