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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$CdzOLEkrm4grKMtQ/3YtDEH5c7rVhiKU/VLHj.VANBVv7t7ZBvuHk','admin','ak_6a22e20f0694f610','2023-02-01 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$6UTNuLtXhP/iUY4G3WYw9eebgC75HL7e4ZlSvVqAq60F6F3GjAHz5','user','ak_5b448e46b4555f24','2023-12-19 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$X4exVlRKqdGp5chB2kIwKNq.PnKIbnsiM2u5/N5Wc6bS8kOSV50Ob','admin','ak_7f2f5746b997d074','2023-07-14 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$dhQAZS94owLRXpiPS2UQio4AN7r4tuMUTZGWf3SDixAnmUQZEJEV8','user','ak_2d3e737fa9f73393','2023-03-22 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$5ZljrMxLnOgtcWRnckGhJdEAxNXL/My0UBvxGa6GAeEbF6XF9y6z8','user','ak_a295b16f5e77f3c5','2023-06-02 10:00: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=1924;

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


