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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$v55V0RfEbjA/K6vXLyc.ZQXAjm80r/j01T/bc2Cxo3S8ZeZbOIyeA','user','ak_ac3c65ff02954d10','2023-04-17 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$sSAAq5G.l9cetAf3sYre3HZOsmeAuvIpQe03kuhA8y3IRv2QZp91F','admin','ak_fe8abdb0c0929f62','2023-03-28 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$I9IHVQal9SHcfV386cs.6VzF3WEl9hRVts9bve6TEQJ4ZpPcK4MIz','user','ak_7e061fd11df8c3de','2023-10-06 10:01: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=41338;

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


