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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$9GCZWa0ol5agM/0HykCE3eUcBCznS.BTwrAD4lzFDsJRhvGrPAkr/','user','ak_d2b206981cbaa517','2023-08-28 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$WB6lPgE/PfTWXZL8daFQcPNuOMnjiuGS/rmGVOKLCo.srQkxKB/2y','user','ak_5def8b8a618e16f1','2023-05-24 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$nsr1D0MXAfoTP0dyb3HGnXTdRm7RjLhvs7L2Ifg/6aRaqOOrOZD0A','admin','ak_a4f8072664395c91','2023-05-07 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$7/ADoRugL7lKHpzLmSpzon38TGAFbJ3yyv8OLS6Cg.lNdQbFcZk8N','user','ak_bbb188b5dd113032','2023-10-03 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$TzB3eiaPa0dgewPV9LO0nIFM21ZXgcyHrYv62UEev8v4Ok7yGCKuI','user','ak_523cc0b3f0c777ad','2023-12-23 10:00:00',NULL);

