-- Host: db-master-5.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=39672;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$nfNHzsefgKgZJc2lufgtc4qcv7COx9RieU2i5P.vmMdgCRwziDMDO','admin','ak_216b234fc620098f','2023-08-01 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$HqFLI3HFYTG1ay4g9IUUs917x.me33n0IxCUAKcRIPlHSOOOH/q.J','user','ak_b697e7827127c1d0','2023-03-08 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$9zoQRBi/PXpQnAP5/8yArX9vqLuqAypLb2lYFC068qNxkmleB7YmO','admin','ak_0811c201201f03de','2023-08-08 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$DD3AnbhtXkisflhbzm.1QZyyKj6L08S8jTiiV9mwr8e02YtwXWQiS','user','ak_f915311fe98f440f','2023-01-26 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$BZp9f2GVXCyozQHhKe6EVSVkw6mEsZZv68TPWCdoMm6jBv7KhWrI7','user','ak_262073602c346132','2023-06-02 10:20:00',NULL);

