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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$9bXuYaJNbnVexoRM64EGttZlPjwU2mBbC8uCI.beDfQiylDGhe9DR','admin','ak_280e7f5cecae7f53','2023-07-18 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$B01qj2ZHDiH3yLaqGTp98ZX8.lrRU38CwJl4AxAXrdLBUikzXw5x4','user','ak_cc423c718f0f92fd','2023-11-09 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$se5yM6geaeJ4fXzCPkGl.9YgA7mMV/uIhswqgrgNcrJFYYsRXA0tW','admin','ak_2f7c1b5ca4f159c4','2023-02-10 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$4TiMXqO1WMYrlQ3Oowy7nCzlwSClfs5h.nf7ujFjmNvgxg37.6KYo','admin','ak_3132b79aa06285ac','2023-08-11 10:05:00',NULL);

