-- Host: db-master-7.internal    Database: customers


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

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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$EokvtOdeL7vcRsQNBhz3JI202FUcb50/lITaEz/YQQoSMzTGrZY6b','admin','ak_6cb272a071d2df2f','2023-12-08 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$0krwcf/SmNU03cHJ7Co8IwvC1GPvXh95dihp8FQjR4hbslydE.3rv','user','ak_bed5f8d5a219bfe4','2023-09-20 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$Rc5q/uKDeM2KWciHSryM5hOUYRhTysvp4iBjyq/EpEe2cbRLOeuKf','user','ak_e7939b75dff5d040','2023-11-19 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$YLTLljXhQ9MeFx5UQaHqucoj9Qbpp.FoVkICNJhCvdHVUTHtgvSA7','user','ak_2e50b4cc0d2f8dcd','2023-12-05 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$mtT3cblwsXXQs3iNqUn9wYdqYzShKkmDTyQJ1WcXhuBDVKOVrvAUM','user','ak_bc48341a012781d8','2023-02-01 10:23:00',NULL);

