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

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=2587;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$1Kc5JIWtSwfT4J4EzhFfXlfr5U2A8xao9NmYgmLRzRMI1rAUgDGpN','user','ak_d5cbd026b0b60cad','2023-03-22 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$pWeoXVXWYieVnc1MO9ajTuDSDpN29kH486vi.C0iEiGrcUkc7InP/','user','ak_2c65c29f7baee5ea','2023-06-22 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$M4y4PT8Xt3RA7COkwcV/vTo2JMBuIGQI6UAqohNZxyUt6eNOSOrq4','admin','ak_0b061d7db8acfe59','2023-12-27 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$jKE34aL/OA7CCMB6zSHn3OAHcitZ9MgrYoiV/gzCNuynaLApg7wau','admin','ak_39c9c6d36fb07e2f','2023-08-15 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$mGYWFXyleqMf/2O8I54dgdHPTpT0i/itUg7PofqGmWB6ZWw5zqfs3','user','ak_75ff1734ff01fe1f','2023-12-04 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$38Y22.ACdpkQKAJYBNUOOu0qYbe6V/x9W/vij9Ni.d3yRZuklzJ6H','admin','ak_2962aa9eb01eee6f','2023-08-03 10:21:00',NULL);

