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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$rePbCPi.cz8twlMhkDu9dBIkelq8mNz.QIujFb9M502gaUaTRyc16','admin','ak_3665a2bf5a59ffad','2023-12-08 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$n7wu7na5YFHK35l4IiJM397Rp7WLum4UnKLb4MoZSMotWzxtgKdet','user','ak_3983982f887ca48c','2023-01-14 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$aaBSoWWsSPrjUillNY3hUp.N2WZMud6vkQ/9aNqLwUrfhoPmfN9hy','user','ak_39327fc2c4b6772f','2023-11-22 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$kjzNdkHK7gpvksLf4sFO4fMGxHFegj.jnZ4j9Kvt4BHlK8pnY.k6G','user','ak_6190a9dfee3cc6aa','2023-05-01 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$3xbhWB9eH8U5f/9Y06L1SBSRix6vwbk7iilxviBxn5caDWvk71dmF','user','ak_4b4369aced669f8c','2023-12-25 10:02:00',NULL);

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

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


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

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


