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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$vbhHnVz1B6ExbDdF3ffK6ZkZnINBoxzpaD22bklKehbdG87EatPaH','user','ak_cfdf628fa6e301b4','2023-04-21 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$z8W9hw0xak5dUJeMuHv27HdEom8oWcRtIvsaysWMEsZkOHK.IuIND','user','ak_373eaae1e89da91b','2023-10-14 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$fazMntIPm3fR6OQopkXyRs1QOfT6/ucn/.1WzJmD/sdKQVPeC.Juz','user','ak_781e7ba1f417524e','2023-04-14 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$EI/8iVsdyw0bNmWK46yOpbXqpCrp5Qs457fyFtgwukSabRTUFwoPj','user','ak_300c9d07548f9cf0','2023-06-28 10:17: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=28730;

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


