-- Host: db-master-0.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=17559;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$nMpouv5VrYDufS1/IatuuPBGhlc0t32DLDsHK526QkKDPJjljDC0s','admin','ak_424231551671c099','2023-09-23 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$.GYPTkpmjc1EDty/iApU9LCy0fYyafTGgU49Z8jjWucPUUBbehjM/','user','ak_eb28e6808fd903aa','2023-06-14 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$ttZ3rXe8mO3d3M6sZ4mE1mRYdPAX/9TgM5vIk/CjWpRqJp2l.9HEH','admin','ak_8ec72de2b72c9718','2023-11-11 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$pyYWqoG/q2VFSYhA6MZjObTf.hX6ceFhIdV3FkXXC72M38UH8U4vF','user','ak_41b62b0291471a34','2023-12-10 10:23:00',NULL);

