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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$Xks3RwXm10A9U94oayqdXrE5JVj1z3Atj5MA2nQlc1dhR2IMqqcX3','user','ak_a1d21b543b383ee1','2023-05-26 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$HHzy7kGUmoer64qbTvzYM6QohLBhX78fBQpIp/V3djZE0Etq0DR4K','user','ak_cd08b145cb6fef5a','2023-06-14 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$b4b90tOYog.AuoyC5pM7hJVMpC/hv8ud5GJ5zEB9wBEmiscgCx2YN','user','ak_b513a601721735ee','2023-12-21 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$BkNW6PfDq2SCb2g7A/XI3FMGXMzKPpxiTOFRyrPcqwnHQoZ/18fq1','admin','ak_17a64a0a5d2df262','2023-12-25 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=31717;

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


