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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$ZNhE.eb758XCeNAmcwU4OCFjvqZY733GIHLMVJNMPwB6FKxrXGnmF','user','ak_ec673c5d609cd06e','2023-10-05 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$K5DhgVhGid4G9UwhTO9nGa3P1td2L13s24NrbZPoNbmAQ7nuD9gg0','user','ak_2a4f5e0fdb370528','2023-07-05 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$0M3FKNACWTBIC2Ic7vdLHUiqNcSK85jio5tPVkvfL.Ugjdh5Qo14U','admin','ak_b04a471e6e0cd465','2023-12-04 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$uiegil55dDJdt34ZgtRvpNqyOE0tbaMT7nLqb0F1SOvtXhuc7RZ.0','user','ak_4594c863a651b703','2023-08-06 10:08:00',NULL);

