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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$t9ouREtLb8lqLUCSL.inVJD9OZ2a4pQILYH7kf5cuMANjvJ5/o34X','user','ak_3b89cf2c6243d71b','2023-01-16 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$3rdqZKWt565JtHZHg1DjU92jdh01amPM7stIeVH/xqPcV2Iu9sFEm','user','ak_0abab76b3481c172','2023-06-26 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$MnKBvYbWCWANuroe3pjycg8xYy5FHK2t1J8j7g7vEY51HTolyAlyh','admin','ak_0793c5b4d24a0608','2023-01-10 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$K68LycqPfLKXycbKCMCWw.SWPAzNuZDjNXWAH6ivjRoDuQbv/7uSL','user','ak_efbb28615ae266e4','2023-05-28 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$pVAQG4RlRA5lOlyypqTfvId7pagCx70.0DEDtsrOyk2AzdhS83z1B','user','ak_744c1f00bf199639','2023-06-04 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$vs0.6wuQ40m5.eRkGdcIueu9nwao4hJdo5Lhq4BLKs9npNtwrQQtX','admin','ak_3308a4b3b7f36cd9','2023-11-21 10:15:00',NULL);

