-- Host: db-master-3.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=7068;

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$jUNFS8zHwawkw7W05EwUjlrcxXpF1VI8px8WnqW6./fo6NFtz.u3W','admin','ak_353e9f03dbc9a951','2023-03-14 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$wwzQWh.29qo21yDFqP9QHd/UkZ5HriqsjQkdiDLGwPrupbEtmNen.','user','ak_040720a2ab8dc143','2023-10-25 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$635zLgqvTY6ImlfR4S.9AKUzUrLXauW7CkKZkElyVTVoJwJQvid.2','admin','ak_2c9b7e08ac89ff6c','2023-12-08 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$o3qqhkaLFw9vRNGl1XmqDu2EQMf9ogwbsmknTm4GGVlKe1.5i7GK4','admin','ak_f6d5a711e973b011','2023-10-01 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$qfj3wmiQT..GQ.DHwj7RvpRm3aOTpN1AaFviBGyydv4a2POP2FeVi','user','ak_77c1eed2545eb155','2023-06-19 10:17: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=45436;

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


