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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$5EUrxWlmnL4j68AI2GWKEQ37pJeheX8PN9sP5wwBdDJeQdxjwHID8','user','ak_cb69fc997923fd20','2023-11-11 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$BomVGqPOdzgMhsSxUe3asL1prR1lag95OHfMxzjw7cq.FIU1Zdt3r','user','ak_fd71bab626d16154','2023-08-13 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$8o9N107.skURJiiG1dLPyUq98z2V2ShB0f3tkuiHmkE7HInLO.XNF','admin','ak_d3938121bb11ce71','2023-10-04 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$UmvknS0HmR/UaZqNZGqadQZv3131b93lQFw3vc4X3/keLMjRlmlVb','user','ak_8d7de9afd52bb832','2023-12-16 10:06: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=13792;

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


