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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$vVffKfs49O10.12PjDx6wH6pBHWXTb7Pcn3Lxo3VFYOly0Q7GP2hq','user','ak_754549f8fdf8b322','2023-07-16 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$JT2FHKwCBVacpvLiBDz0M/KHi4TyjC8SRMUAtAGU11IVC0aVDpTrn','admin','ak_c99601f290c65d0e','2023-02-07 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$d2YTU8hf6gGqzyJXn1p.Rk5ZOAde6YmPthfTAGaB4/90wy2Jb4NEZ','user','ak_d021041c8372419d','2023-03-14 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$yZlKc1qvfSdB3TEKqQ9UsUpqTd.g8rm2QOH4WY7VCTL1MRCouoHZD','user','ak_1de3bc787b1611ad','2023-10-21 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$pXDRvampsM76nG6BahPYIwA1TXT.dH/xb71QH0gZaw1hEUH5pRan4','admin','ak_ae2e5360acaa7eb4','2023-04-03 10:23: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=6353;

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


