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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$qC2uPopdh3/CUrA9zd5wg00qszpCfR3ZEcuxOuWdHl8kLnwHDlIyT','user','ak_f8d957f5c40b4309','2023-10-05 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$bwjvLU6K.jV3HaGhKCaffeFDnJedqHbXRO1d7UjAmARUqv0lL9um.','admin','ak_fe729cc09a9bd8a6','2023-02-02 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$e2WSQ1x7.XvFZywYX3WeCdnxGrVOFrNf1HstniA96Zqh/hNBtQlkN','admin','ak_464934bb0526fc48','2023-08-05 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$7uyzGhencf3NhGfp/cZnxsy5lJQ0Zva0v1olN/CjTm8.BCa7MlPUx','user','ak_7ca918d666b4cdae','2023-08-24 10:05: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=10870;

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


