-- Host: db-master-3.internal    Database: customers


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$cZKmBgfmJf0p3.kgKX5PHyUhISsFKYO7he4eDsQLhu5zhtlUlNsgH','user','ak_00f53fa58ae0f5c2','2023-07-22 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$BnCC5gVGoWQjIujcJ6rbMW7u368XrzEfmxQis/nqwbg1IhZiNiI1x','admin','ak_6eb4a008e3c05de8','2023-04-18 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$sRAMBI1gFVNKXYkgmro4BeBoJQdo.C6pCn8iEI/aIArV4ljF5z0w8','admin','ak_28355723a06184c2','2023-12-08 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$14BGylG5k0H1xeq80bxPx5WdXB7OZtZgETk0caXa3Aw8c36Uu2YAJ','user','ak_29173e88009f1b5d','2023-08-22 10:19:00',NULL);

