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


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$NgK2j9/ATZnIwJJWbSXZU2Iq9kd1gG1pK71TtFR0YEY6GR2L/ZGp/','user','ak_181b216e042776cd','2023-12-20 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$tbaVmYfmFOmwGJpHquRzdVZLIT9ICPwyuJI.tYsnpNbTWtsRoEIT3','admin','ak_661cacacfb75b97c','2023-08-23 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$eh.uIR4fkbHdDT.TGz6o4DbjYFriFvlKBHsxguFNZbg5KNcnQGVZY','user','ak_4db8c1042985149b','2023-11-18 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$GST0u6bZerLr9t0qM85gwG88femvuuqurWDXmxif.1AMPg0/r5Z8Y','admin','ak_3393fa07f226a848','2023-12-24 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$1vQA6wuRqcRtuInoWJ4UhAJAKrWp/zNiw5dD5ZJ6pCUzJhUksWtzb','admin','ak_89de3c26a9cbd355','2023-02-23 10:09:00',NULL);

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

--
-- Dumping data for table `sessions`
--


