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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$RhXbzL7qPIjkKEd9qe4QNeMrCgDy3KD0s41PepWsZmCinf73V2/Vc','admin','ak_2cf04397b772ec92','2023-04-08 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$qAHMwlL3i248p.CFZ4XV7dLQKh0Bt3clDGwoaivHOtUzsdEAS4o2Y','user','ak_276dd52987b1f9b9','2023-03-02 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$vMIQeAeyly0IYMtAYztj6o..0Shkc2xRbeEWOfz9u5iuRfnVxIEjN','admin','ak_5eae66dcd985cbd8','2023-10-27 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$BjGGzSemTCLcJkLxLpUi6rNwaF0EOxWAB6ODahr6/Vqi.O/fwyXV9','admin','ak_ce455b6735b7793d','2023-01-19 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$lQdOToEM77YLN2YjV0pHmzvO3.SEnEHftJptOErEhvPQnQEFG8Ah5','admin','ak_a3a3c1f96e7430ac','2023-05-14 10:00: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=48405;

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


