-- Host: db-master-8.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=30921;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$sg8wub1ZHl8a7ZVIU9bW7.dsRGCyAXt8RCO4mtkkY9i.CHnJ0tg9v','admin','ak_6b7720a6b0899587','2023-09-25 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$/3VfGGukX7JdZY9CnLR5R0SQx/1hoi9yxB1/9bgnvAvrMqyzLktYS','user','ak_579d89cb9f5bc105','2023-02-05 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$9tyfjQMr6NViaRMlc82WX/vTOqvyytTv/pEKAM0gxSUxd4sU64Vkf','user','ak_fb0410c3ff73329f','2023-06-28 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$7M2vxlG9AcE3lUCvrM/KedCRcePIctd3fNL53BpSHgcGh4kApPl4K','admin','ak_ed6c2a1ce8f69beb','2023-05-07 10:18:00',NULL);

