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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$G14eSlnblQNNdTYgMkFH/T1VSQ6uaqFwynnE8/xvzloQnB//sx0WG','user','ak_0ac4a165a6ee18b8','2023-01-06 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$EhdzrnJKXqN7PMCk6PuETrQxVoR2lt9ZpXUMofXmkkLXoXTHw6.fG','user','ak_a164a49d410cbd8b','2023-06-19 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$pfoXW0egj4dUkZGXIC7OBfdzb58G/QZwznTARldhX4pvanAPO4GB5','admin','ak_5013b26d598ef39f','2023-11-12 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$7bh24n/3VXi33TAZxBznKg/h969MJrxeQdMqvg7LC993EeiGBCjnj','admin','ak_205bdfb2e647b969','2023-05-05 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$DPhzvzCm3OCLLYuA63qnmu/ma4xYzbRghCK7.8pGwZVD7CkrjG1Dk','user','ak_62fff3e7818ec187','2023-01-10 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$iCquMoAzRQgYJQYjy9QdYILYvZo12NEaKOaNzX25o/N8dMNmChL86','admin','ak_e6dd085987aeb442','2023-06-07 10:16: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=41096;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=7323;

--
-- Dumping data for table `products`
--


