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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$SL8NxaGDgqC2gaXCMQq3tv598PAREMMVOkLYmpUg6D76JMz8tHEMW','user','ak_b059fc6b688de393','2023-04-12 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$mn5zQxJi/Shi3ffjSKFXd3sk/54dEi3PNoWkHMsLfOxXr5YL70x.4','user','ak_b5e5afefc68774f7','2023-07-08 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$xB.BMUrcOxKox/jtal4JyY2xO8D366Y/9wsT1F7kOsrS77PyrlzNg','admin','ak_c22db03d2b9f0152','2023-05-20 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$Z8F6iM7.OV4stIY3DRhhTKVlYD5NOSvY/mjrehQ/Ks/yWqrhtSoFw','admin','ak_631cd3afba2bb8ef','2023-02-09 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$dDqqSrPdn.mvX8NZyEEmOs1lOmiDMpUhAavuGoutEZkn2gS.OnQGI','user','ak_19d374e60da2a28a','2023-12-27 10:02: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=37100;

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


