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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$81..F/irVygt0BRJUC9mB2C2jqy.YbHrDZtXbaxNUZ0METEorKD86','user','ak_02e80a6c91c263f5','2023-07-13 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$ygNxayxP.ufd5j7fYQyFpn6B0Mt1FX95brjgG9A/CGwkNzRqLx7ES','user','ak_15df6094cc2d6cff','2023-11-05 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$j.3sC1NgLyKW2rvLbKeJxcNZ1u7mmg9J.jZO45m5ZLckYsno2W4k.','user','ak_b4b0a58dc8554a89','2023-02-02 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$zSkCeJwM84.VqliuMNI6GF.pV2W9E/TXxpIsOfqkPqIW2IiOK2snM','admin','ak_e7879868749123f6','2023-12-22 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$HNp0yQv/cBF1iZ8QLAe1PtlXhM6afSIBUE7IQb3jPCHwuRWB7Lc20','user','ak_a686b0338aafacbb','2023-03-04 10:03:00',NULL);

