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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$oWu1GcnwzCKnt0H3epUTg0UO8ikh5cjsFGYB3X8IgPWrvvdsfDjPY','user','ak_51470953679d439a','2023-04-24 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$LCgOFT8WFcSBS/Yph8daHRzYfRvFQ3lDjhkJs6IdK8CP9eQwjDhMo','user','ak_4ee7b766db4f2d15','2023-05-09 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$m98yVYK6VC87klG1oCQaK8awd0AdSvrbFYqV9J5Egfvafa5eaqmqz','user','ak_a4a1154db224945d','2023-06-16 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$50.49BUI1odjN9GucOxDTiIGqY1axPk/XSeUhBECASgh2g.PcXNj3','admin','ak_8dee481b2adf5d49','2023-01-06 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$N8NIndQh4tFE54eZf9b3kCXD4AYFsDsitDdLA9YKWTzuvn1UQKV0y','user','ak_daddeef58f9c3b37','2023-04-10 10:12:00',NULL);

