-- Host: db-master-3.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=30638;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$4iV1l1vS0JuX7ti0/ue03NuedHJKuPItjGtsOIZXHYd1cWHz2GYSZ','user','ak_2611f426072e0bc5','2023-01-11 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$h8/QQQTiOZUBYo/2kVyNcbMKSZG5XwfL62WSBvN0kCxtDysp2c/kq','admin','ak_852f4704a561c5d8','2023-04-01 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$Yx1S3BypKQADFjyM6NvHv.iPPCh78TFtWRyfjZScV0kblNrmKB4fM','admin','ak_71d11d3792382e58','2023-08-26 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$5nCnqPe3yqxrWOF3aZa6E6puXuTqdFMMT0Gyh.U3WZqQJ7ofQ5moL','user','ak_5cdd4212d435db14','2023-04-08 10:22: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=46273;

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


