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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$k.lZ76/U7FDqFkVL5JWaDCMJOBtoslsunbNJqz7R7shIdG.ndO6ZV','user','ak_5f7be231a800f4b3','2023-05-15 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$B/JqxdrVsR4QtHcZJeH7n668EIfUG4yNMIrezbGFt5dIhSxE5jRDP','user','ak_802ba35974fc2dd0','2023-03-25 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$KIuIZR23E1VfF7sqmGsE5/Sq5HburkIybGiRVvL.i4qAx0/ZChM0a','admin','ak_440796fb20526cf1','2023-09-06 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$nFLnEx.XDNGQy/Jzgzd7PwTupdBSqEVU7ns8tZ9PwCJvrs4eJq6fk','user','ak_813185a61593a922','2023-11-13 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$ffgLyhGQ2u7V8gvvxuIyX7oGLWfAz/C2TBSY0O0eyMmOUHTPtKJEK','user','ak_8c2e55fd18d8a4fb','2023-06-04 10:23:00',NULL);

