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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$bMp1IMYfjR0rE7fMHQhG0m1h15PqW0ON3kQfba2U3cmCs3l.pjt12','user','ak_de2e2756dd498595','2023-08-01 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$3Rayl.m1E0vzobC/W.igjfo/h4ZGCRouztg8O56Wa3BG8nH/Z6KHL','user','ak_2a0005a16f2536c6','2023-05-14 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$FUh63Adm0Y21//BZ0yDiXU81BeG5QVCoR0cX/oC5hYB79Y.n9yhOM','user','ak_bbed0ef8bbb40676','2023-10-26 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$vXmBKx3Q/0ewl53GJvU3iB5c2aI2OMXGq90EZSNdDIyR8S.kqWAXO','admin','ak_c3a43712106c4df2','2023-12-01 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$8/SoJef0ffxMuNCSfnFUHQp7dovfmEQh/5T/THxcPPLsCJioyJz6s','user','ak_fd0dd9d643ef138f','2023-10-01 10:13: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=15246;

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


