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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$vgtOBCcMReN5T4Lzl5o3lZAs7CdgNWa2XRcgPOAZ7SyKmrIlczIAg','user','ak_98d317481a0a1734','2023-12-17 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$maqbE2q2CpSO64.i8CMdcXTzMTNGykU.GjRfN5zuwhtW7MlaX8UGK','user','ak_e9b72ca24bd47da3','2023-11-02 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$uv8iHCC0JlXen..Hpav7bjKhrmorG5n8051TFcVMkpY/cS6Oj3Z34','admin','ak_0ad9211cfcc0d15e','2023-09-28 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$mHDqXWQKf3ld2oSb4iPCm.fNAKmJtJ9iyLnokCnK/InYkJqX0dHQJ','user','ak_145f94746243e9f1','2023-04-15 10:09: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=7129;

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

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


