-- Host: db-master-1.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=40111;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$y/MieoFfxddD/SKnTgjvD9So8VGSs5oS1Ki3RKy9VumQPQdeT4Oiw','admin','ak_31a421f8b67e2870','2023-12-01 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$y3i3FJsHRO4uNH/MaE6zdpkEpro0meysxuOud0/4JAXf7HfxV/I3/','user','ak_d02bdb8b09c45a26','2023-09-11 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$aKV9KW78qGiDN8XU/wPGbeN/nN0zsiHvUQxgo.wAGfokZHQoX/FoL','user','ak_b25cc10746845500','2023-04-19 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$OXVXDMUWw7J0pacaUIIs67MWy9Tqoai/czRSoj0Cc/QQ1sS7D7mEF','user','ak_c03b9db289ec55d4','2023-10-16 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$rrSwIc6sUr/ntAMJQoWNzier1Kclt5N1cW3jHY84eSM.BlPQZWyWa','user','ak_dc69ece4f04fe1a9','2023-08-18 10:13:00',NULL);

