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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$SK7roOH9o9e/OBjClYFuqysQ8beX9scGUidYtTiFlYy9zBZc1skVn','user','ak_715d94d21abf89ca','2023-05-06 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$PJYrzTtohUyLl46sCEEATxQ2ZeIUoBY6hRTOkJmoPLKZcxGYv5x41','user','ak_ee9abdc3978ae397','2023-08-02 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$lUyjXtbR3G3FY52CwiBjiNABSxHD4kySpP06nlZf0JstSAGMbNR0s','admin','ak_ede5a4d7ed9d982b','2023-06-10 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$v.cTZzuFzvIrHhqq..SV6Bn3y.kESRDUKvfVH9HIafysZbYq6pYfR','admin','ak_d7e57926f4dcee52','2023-01-17 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$G/YM3JAh0/9hTh5mJSXymGAQLKWokmGqsdi3PSPCtU4tcZEW8wfSV','admin','ak_821dbd38a4bd69fd','2023-08-26 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$bPLjM/rscZX.GQgiY1cMu3vhJgONZ8CvuGMEE.5t74SjccsP81T4e','user','ak_b1c2215c698cc8a1','2023-03-01 10:14: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=7689;

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

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


