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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$Q5lOZa9OzhYMKPAeMzq6yOUhi0Y./SSHeguBvbNEp0nMD4Uadx.DE','admin','ak_2cf255064c1f6d5d','2023-12-02 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$lTrr7/odwJxoCbydwou/MPTZlPjItc3nFQ83zTaghXbPLOJ3F8BJM','user','ak_2f1e7c867f1cba81','2023-06-25 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$baHvMrA4FfEFEx7b9Cyc4SxUBvomnfsdMyigztJw8H7dXAV67EAfs','user','ak_4599603f469eb37c','2023-12-03 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$hAgn4p0UTrsarJXsriDICZyePj/OoxIA1tjm.Q1TVT4kkQKdBpnkm','admin','ak_b5b1fe988d5eb230','2023-02-03 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$yD8jXYNxzEqHvu73guOpENj9DHxaPwixDpFHBSTXEPnn4kttZ9/5Q','user','ak_6bacc0233fac775f','2023-06-28 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$MXbiuk3YBKRy/2hgKP9IK/NOrgCqdA5TI.hdzWW6iBaY5zdDeQ5kj','user','ak_1f35df4a5bd60091','2023-05-28 10:21: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=41096;

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


