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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$zZUoDj.D.T99bxRcGIi7aCjzXZUU6YS8R3.XsGUQwBBjo9W58Kusy','admin','ak_121c29c7e21e3f11','2023-04-25 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$xwEiIMpMEXH4hQGhFuesFg0RYvxVyazsHwqRrOkXJpGMCxZghQDbu','user','ak_e5af2a68c5599d6f','2023-03-24 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$1lhSZDK/FEDMat8a0z375iENWXtdFq0w2SkW90Z37aA6StZvyHAEt','user','ak_59ac603c925beac3','2023-08-27 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$dcsmvgzUP7Xma5r8F9fZEgbBeaCgN.IOyDm4.u9i5FoQzxHu4eKEn','user','ak_d8d1d83e9b9adb7b','2023-02-04 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$ADOyLEC6c67pldjtwYqC2t9U7.RhO.rA0jZ4IYDQTsWXitwXjBQKc','user','ak_fc51df3c589c5dcd','2023-11-20 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=30042;

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


