-- Host: db-master-8.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$2LinFL8TWqGqv7xqdWnwlZwVRUWF1PhCpdtlm/HGiNOse1f56oVbe','user','ak_b9d29a472df20ed5','2023-10-27 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$eK63fBxkA16PzAUQ32VNGj24asfIkWDd4JEDnuxLfSamUZazpqRM.','user','ak_d06135fe34b99339','2023-11-09 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$l7kOTPzHQm8KV41cMPAnzT6SIGHo7fR9EWqvrRGjbTd.Gio.dAE12','user','ak_6d4a2da8b13ee63c','2023-09-27 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$Z10U52pxh8dUbTS4mUrIXSHgTTqtAbdXEZP1OacjzpvkbPg7NJ7S.','user','ak_2be3a16a9e523dac','2023-07-01 10:12: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=43863;

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

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


