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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$RDkce/BC/JH4Uk4UgOV2C8nTCnIFapVCh5cnnpEPTsHFxW/uCE9Gt','user','ak_eb27d18203b7c151','2023-12-25 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$u4uVlTXatWglRRpxtQ4xHDGoUGXOY3ZJgFoZMHf9wphq48XAZbYn6','admin','ak_cca722873e5042b9','2023-04-14 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$UfsxatZqQnhL/5xF4P6M44u9VtvWHcMIqx3Y5HI52b0ASNxmCbDfT','admin','ak_09ef33b02fedea4a','2023-07-06 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$dqHpzrdCf7bfSFHi9ZmrE2f8dT6xHueQff3aldy6wEZK0npxfPQXa','user','ak_df76a04b392061fc','2023-11-04 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$ggoaKf0idZvq3bTYrjlRsluaLLQobAuUO8RYA2hMiFPWfKcOmf0MW','admin','ak_653869295bfb467b','2023-10-13 10:00:00',NULL);

