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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$qrGgsBY47jz57ESBsOXdBFCtYAKI7DYxov/M7bAjerPjgPT3fVt.g','user','ak_cb7cc2e81ed7f482','2023-12-18 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$7UQmGRPv069Wysu/ScPmrU69.D0XZZaQ1wq.2AmiYcWbzi3o/LXi.','user','ak_6ee6ab27d2bafe8e','2023-12-26 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$ioxM6ozywV6021Z8ajDIW45uD34FQFyTM.mTdzOqYgAfHIx5uGWfm','admin','ak_635d4fc074c1dc56','2023-01-15 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$mJZmOSkK34SO9WV9vkwcPWtj0Vdkype7oqi2Kl6VMyr56tRL7vgSw','admin','ak_b392589ab32c9548','2023-09-01 10:01: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=24776;

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


