-- Host: db-master-5.internal    Database: customers


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

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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$mkxDLz6YvHqmwqjQcPtMxoXOscMGBxFl5mpiwlCtHxGsP3e0ggQ4A','admin','ak_c62fe6394b1b4cb1','2023-11-16 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$NvTOps/aYYJwVoGhU2PL5rf35rhBFvOd4Yjr8XEapghCB7hw2znFp','user','ak_6562c712076a7b80','2023-02-22 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$b.CJ0xSz/iO5HAFn//t7Ps.Nkba4JzmN6jO4x2mKzjt3zZZG6t/SE','admin','ak_2225086de9dd9c48','2023-11-27 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$YMfvx0FI6RpV58VDftC7Ssf3C28XI4nfM8cSNAHluBxZ05HBuXdIG','user','ak_946202225164b8bc','2023-07-09 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$5DSBo1B/BtH6SIX522q4E1l/7B8C9Mp5s9X53jroFiDzUtYgTfXKy','user','ak_b27c6714ed66908f','2023-02-07 10:13:00',NULL);

