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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$CpxJMtcJvp/qf9WZx8Ut92hJXr1QSPmSbmCwTj/2ehtFq8HiwenVY','user','ak_61251ef5f3b6f1f0','2023-09-16 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$CelYkWZC71FbQLH92qS1WNXc6oF2ofELT9Hv6JwInhewOHkVxi1Ty','user','ak_9cad6ded94266ec0','2023-08-04 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$YIuRLqTAH0WKgKCX.QVOg2/9OoEFtga2G10RkPZ1REFUdvqJxDoJj','admin','ak_071db1efeb89a01d','2023-12-22 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$1L3NOnG92j02pQSa6g2bKiKlLN3KjjRjbAiz08mqkIBQBFUUWIo5Q','user','ak_efcb32e8f9d50b46','2023-02-15 10:10: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=32492;

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


