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


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$8xtDznuukxX1/B18RGIjdR.lCyqnfy/AgJm0KnjrVNxE2xaUhjqBo','admin','ak_7321e99ac0949761','2023-04-13 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$y1OQkPjMziCOYYmxpMfeKuPWUVfkPwNxZckir7K4R3uZKnE4wBdkg','admin','ak_39a6df8bba16dc85','2023-05-13 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$4aQ47v0UySZZtWc5F6ugyzCccSLHygozMPImNcIZV6KFUuqpOkbA0','admin','ak_920cbc7de4a558e1','2023-07-25 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$2eYTZuHAXS0F7OktmBchV03pw5dCjUIC9dz9I12K.WM//9G9xeUQ7','admin','ak_129ba8831adac6a2','2023-02-28 10:12:00',NULL);

