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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$yJ9MVzdw49qxObGAULPSIGEjbhxgXUUioayqVOchq6QDVxWBRTBaP','user','ak_352281b813cd7ba2','2023-04-07 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$rSN0Rh1yiOOLEFwqKV9UrRQvM.ACPJ7S8VXRKVlJ.Y0JUm6eYapBR','user','ak_f534175d0c4794c8','2023-06-14 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$4ABIuxVWXbeMKRdArpO605r/njsmQhu7wNXRhe2mw3E1pyvaMm0H9','user','ak_8e90f734edaa8433','2023-03-25 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$hymx06owbjIdwiJy5gPSiObHMwqGTkg3axH78NQbM82zrt9NcFUhP','admin','ak_b708b2898c259748','2023-08-17 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$IlAnhGme.3OiTFhgngKic4Wzsz8K.j3WfsRjuCqpTAd14ug8FbZgX','user','ak_049e6c6024e556dc','2023-09-23 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$sV07axiuaRWS8gJInIrkrGcx2MumW47vriy8DLa3vDFxvoDXx7vFM','user','ak_75daac9bcf4ddbee','2023-02-11 10:08:00',NULL);

