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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$f9hPsz.axLGGOsYkulS9xOoiTf3B1y0yNpYP6Xm.pkIWvkFjTr2nm','admin','ak_45037e151242db00','2023-02-06 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$reLMk18rNslk0CAohCKiz5pqQeo16ru4l6aXFZ0mRhRTLmL.lZ.9F','user','ak_38d22e15b7ccf3db','2023-09-12 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$9xoqcv31/1rYvUtZ0ODEbTFgyC.xQ9SwJnNbRkVj4yVJ0pHQ6Do5P','user','ak_e07c75c108e1e988','2023-09-02 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$JKl9.r4DPvd7vNsbp4.hWSXIoeQrFTvS9KnwiwCdJ5xLS17S/Q1AU','admin','ak_80540be6a04316d8','2023-08-11 10:07: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=3107;

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


