-- Host: db-master-5.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=48996;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$/5IJsZPcxDAhWeu6jRZxsahPVxeGCMeI/orA6AWrB6jaDrZ66Wc2u','user','ak_04e138486d906e0a','2023-05-07 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$rr7BPV7NTObIkYiAEum3Q6b9mINI0NavwIFj39f.qq4N6OFVgTDzW','user','ak_74c47f0da3f00576','2023-02-16 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$i8F5/RDA/9h3UiynT.FjKJcDqQCl.dpU5zXdL51xElNY18b1b4iqS','admin','ak_bdb71c92fd42ef77','2023-07-09 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$cJnrzxk4P08NSrpNWgx7T47KoMiUlodxszBpqK72XWbULO2ukhTZu','user','ak_ed80ab5cb8e6bc42','2023-07-26 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$MjoNa.8u/u/dx0L06IeruwRUbFbiTQWljSaeSPO3r4s/TgpxV23ua','user','ak_9b1cfde630391ab7','2023-11-16 10:22:00',NULL);

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

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

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


