-- Host: db-master-9.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=46556;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$mQiCfeicumNXcyGo.onSBD132guW2kLZ0V00GHtRHsfWo4jKMzHcN','admin','ak_00c7761358884c5a','2023-11-26 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$pYaM/BVxmiWIQtEk8qHQJ1Ez8e6Rg7PdqyMpjvgwtRWeF0F5h3uG1','user','ak_8eee084f0e22c8b9','2023-07-02 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$3tHu2hqWLnuSksv8r.aLM1keDeRGDk.Ag3TV8t8eoJkBWIa1geQLI','user','ak_39016e843ffca73e','2023-01-19 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$G6/qzlIW2J1a6q16uG6S.yiqqVLspk8MztbwpgKF3CAjqWqAAcG6B','admin','ak_2eb4d1a58c1a54d0','2023-02-07 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$V4s2JhBtNCOuHdBQ4arSkKTKmedFB1X9qNZMvcB55Zit/LcTsAm1x','admin','ak_f0f4fb66c9e8c9a0','2023-06-21 10:03:00',NULL);

