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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$UfYGDllKNKdsnv4pwYTDycdVUFBDZi8NG9WlnecebL.2SB97WKUNq','user','ak_aaab97f82900f7e6','2023-01-21 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$lIG4WeuEkwqVI11FaVWIuogSrnsTvluDfnURr0b3zgwXFMvp4lhu5','user','ak_14e1611b67ad85ec','2023-02-06 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$dtAQvxVArPd6xYljdUQrIDAZ8x4D1IJCdJjprE4k0WvWvNkLfuAOK','user','ak_8cf0ea948c192a33','2023-01-06 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$jtN9bIM6BRUAVMjhwCjUu0BBWGOeLQMGHlT5xH7TmW/7m.4f5sIpu','user','ak_3c1203d4d0057a71','2023-04-19 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$tdKOEhTIF4hzUO/9Mmy044ML6QiAkTtIjD9yp8ox/HRMVBs/ORdU.','user','ak_211f20cc90c45b6e','2023-11-08 10:00:00',NULL);

