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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$ByAyG.PvCq6wBsmpH0LMEUcuE0RB7QxZCkr2J6SwHHiADs2Q2b3VV','user','ak_d11adb51240379b6','2023-08-06 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$nHu4sactMcPGi97Q6lYoiQtcjU9PNvutXY.calL640YKWtr3VStPV','user','ak_9c273d2f89f483cc','2023-09-22 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$AjDBb05ergSO1S/nHtIilcBWe3AGRmlNGjfxVXPtu7WQ09XawlRG5','admin','ak_e96de76d3bab6bb6','2023-11-10 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$GvQN27zAi1D/6EGCzu3.9.pS0NE41A56S5/lupCIt32Xg8IwI.Fot','user','ak_ad99440fa747292f','2023-08-11 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$1AHSvVwbJZ1WE6WM6n5J0RActDXF2io.iuq3.Show7RUXw9VKzU44','user','ak_f72920045cf0fbcd','2023-07-26 10:04:00',NULL);

