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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$dBF1EBFejrcQMwBxbZ20tyZ3j9k95J30emUXosBlRcTyfs.qCVJEf','user','ak_2c83dcc64a0eec18','2023-07-10 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$8ysiB9J9pI/kD/ahzR9f8jmbSy/W2ThXhHUPdu5s64D0rbPhIaYW4','admin','ak_946abf8d977d3b82','2023-09-18 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$qqR4JKsVZRA.VI7aKqA/cAuCSmoXKyuGB6PTePs5qp3s2go.9mFTK','user','ak_ed221d4343e87e62','2023-10-09 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$j6i9Yz3cFtxUWpEYTnCel06ueqs0Zqrl0yuQqAYnLEzdYv1d5rw8I','admin','ak_6c594081ab4f9bcc','2023-12-03 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$Y1z56d.6TclleL3wcuzG1KlZlVG3TTIPc359y.N20HNXQkGnP96Id','admin','ak_82d457a2b73b6405','2023-05-17 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$tGvf.r3gxb3OsGye99ZS4ayKxDSuOjUVVzZDvYSFxNpHahQsofUof','admin','ak_6b19ddca53ec082d','2023-09-06 10:05: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=40330;

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

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


