-- Host: db-master-1.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=20605;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$cdYqeblLjqWxow6hl4ZDsDHXTQs2fp/KsmaLnzcADgAgAbMmZEt0Q','user','ak_afd20550244332a7','2023-09-13 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$v9WWuHeaPHrQzaNGADYkxOGg887OJbo9OtW3NBrNILp.hpklEXRWy','user','ak_4758820040fb29bb','2023-07-03 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$UII9HwQokqGPoKJyxpzcnl0lYnefptdk9TG4wUGPDHQloKqf0JTcp','user','ak_171a5c4358cb27a0','2023-09-18 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$cEXymppk8dCZS3lrOLR/Ky5cJcvoidHGQ/aAHCZhkC.H2MDxb7h5U','user','ak_b719702086d5a078','2023-04-24 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$YYRjBCw0otc76A5BVtHsZJD8.vA3LCXUW5uuuJCOd4VKX7A5mKj3v','user','ak_3517ae70dedd3353','2023-05-18 10:23: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=43846;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=12644;

--
-- Dumping data for table `products`
--


