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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$pjyDtmaeuHBH4eWFCaDChp5BS9Nycb4QXcWnpHYPUgouwYrN0ecpH','admin','ak_7bb715086f419fa8','2023-12-20 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$KKASgW7rZgkR9Qh1.IuQBSBtId4i5a91McHN166yr5NP9txQth4Gk','user','ak_5d9171d865586985','2023-09-22 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$VqqztEPFB.LQezW7p0n35IXh3eGdUwUbVUC/MDZFPvU5QVM7UrV3X','user','ak_2bea06d5fe723aeb','2023-08-02 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$4.YD1Ut9qUAi6axl8cDlnJ6zqruW3KwoJWELCSztTBvkMATqIFHno','admin','ak_1c3398bff219faea','2023-12-16 10:10:00',NULL);

