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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$Nc2Pde4Iq50b7EZsiVb5Aom0.jrsk7tN1esq0uYih2/5iSi3rQcHZ','admin','ak_178d9a3655427d27','2023-11-15 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$DgWvF8OYMZmVuLfxoYm2o5WBCxSxYK13o0JOG7Q4W5t0oKMiz56b5','admin','ak_c1a1e0fab06c3d49','2023-11-12 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$3BdyShTP5SBE67ZQzD1xx8JffTZgOuXpDqi2gqMaM3wEKZTVF3yU5','admin','ak_ed1d816bdd03f113','2023-08-23 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$GWofbdlJkNV/PIwJhfgrPkAt74mr9aCw24f5uNWcQ8WObleXfP1b7','admin','ak_6e4cefaf05dc43c4','2023-01-19 10:07: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=7255;

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


