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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$2vaH0.lRpcO.gdmQlLTth/hotIsY0HHpTj3JFM9YFahJVu6x7xPyu','user','ak_4f75931155ee4d9c','2023-08-28 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$puIAxCJ1df8RHdYA5rHVgl7u6lsiLAW8OfGpMeDz2Ao.DcFFy6b6l','user','ak_d1290fe0827fa152','2023-12-20 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$CxSZJa9QS0aeXpH6I9fTGQxJiJ4oIdiMat/Tn8m1IW413Oag5dWg4','user','ak_a25b84802f27d6ac','2023-08-10 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$lRD2IlqvDysJSWbXeSjy.eKl11woKkvUaBl.dcPI1SlVAPy/q6CAy','user','ak_fe1e1fd470727e7c','2023-06-14 10:20:00',NULL);

