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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$G3J8lSj4eM7v23l4cJRWC8kNp8uMUz2kvKG2inVWC6MDps11MDFQg','user','ak_162d07827426e9df','2023-06-12 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$CZ9p2qRkxV0x4cV7JJh58.yt8mO2LqsuFvynz862l6oBkVJMEPdtJ','user','ak_a53d88553ed88225','2023-02-17 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$cMrPNpCD3VN/f5/yCjtthxav4wL0YvoQ6UGG8Lg2iy.wpT4XfK9yW','admin','ak_73da267317024765','2023-01-04 10:23: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=31323;

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


