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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$jrSf6dmhlkO.UugM/Ebw7PFvTx4rDLx15nouzXMbPEv22mYuQpH/E','user','ak_9cfe87d040bf4fef','2023-07-24 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$RlMaV4/uIM3.TPWbG4QdvhUoxypv8FQDSuDxkrYQnWsCiewLLsYE9','user','ak_03e5782e6f766840','2023-07-09 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$8aTMfVrPVARpnXn1cCRmmHVt3ffVu9sJ.yV4r5bNWjXYuPwPKn9kk','user','ak_23122e1fe4a1502b','2023-11-08 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$nu8tkoJNOU9kiqQTIHYxZ5LxmhLRC.4tXdr3Hz3HWozLY7DChp4m7','user','ak_ee379cf933c5d478','2023-03-03 10:21:00',NULL);

