-- Host: db-master-7.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$sbq774ihI8P2Cylj9OJDeUp8iDer/TajHNYwT6x9wl029AQuChFQz','user','ak_0c67debfc59f4c06','2023-09-10 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$Qbxe/9DzIcWjeugK0bLD5MCxnEcxBZ6LyleM0IPDS80Qm8UMCFN1G','admin','ak_74144eecd0b2e1fb','2023-08-02 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$exWglrKkqhl.adXpDkZWs1d7elFOKSXTDdE7/aeIPU3wM1s.e27PJ','user','ak_8b9352ecca066b5a','2023-10-12 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$0/fVZlSEmLv3TDT5rKZ86rmzayrOXUPWy.WISn7PWtAeVm7cYVYGI','user','ak_16ef175ceac70e2e','2023-10-01 10:14:00',NULL);

