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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$JYqRhd97921oDtuS2xBYvQNMumIOYxdBI8nyxhZ/zNoooYwCj2ns2','admin','ak_a710df0ad0ea657e','2023-03-08 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$x.CaHJYWzvnVnirAD13oFUdskyagjbuhLkZXmaoBQkbAG5AXF/e8y','user','ak_0238733bed0655a5','2023-05-04 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$buqDlA3qHU0vFqD56FvV6lPe3o5DjQItAdii.ivSSeLpj917Gzjvg','user','ak_60e14f11c9153f65','2023-09-27 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$L8N9rCegWJPN/fxGePPjlHQN3vBNPGl3P849A0PbxPD3w1PSQz1Tp','user','ak_c22dbeb513cd84c4','2023-08-17 10:06:00',NULL);

