-- Host: db-master-1.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=42624;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$/XLZqUUcp0fc6rCTd1BRO6xNJgQfFdcQ6L46w23GgGmSm2t3A/Rjb','admin','ak_0a191c60be096454','2023-09-04 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$eu2wNcGNbsK/Pj7ciJ9bT8GsXHkAt4xoJDuerTT2uUtflTIUln5q.','user','ak_b9b4978b3e70eed1','2023-08-09 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$0CsDEwTOWhvPt6l7yApwwp5zJRX5zRMjpl/9G0gkJRIjSmLkNcc42','user','ak_472ae5b81801d14c','2023-04-10 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$pfP0pqT2yhwWmFvfx3mGgyxPW33iCKZeUFz85BoYbZRxOWV53XMTL','admin','ak_9e937ae552f9e331','2023-01-28 10:04: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=34677;

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


