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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$f10.XrEADwgK4Fv1DDOGo7cJnhoyGb77PmL4YE0bqQzM35gKSR6Gq','admin','ak_9e6389178f7151d1','2023-03-10 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$4kuQS9kSjGQrPPOO8eef.XXcQ3iYP/k6K1x/BgTX.zgfNPp2BBXqn','user','ak_6f2e04d2b16e5e6e','2023-04-20 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$DDO.Y.bfKSlqZ09WvupOac024fVqpGt3KCgeWiaFXptII.m8kI2Ow','admin','ak_d9d6d3c88ccc7c40','2023-12-28 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$XBQUolM0HGWgjil/mdCBjiCfr2inuWzlrx7seVigtIbV0D.3dIVKo','admin','ak_374b52b79968a657','2023-01-22 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$QcRo4TawW7aOnggvs0eNeVyE8sJ754smLx.IEtZ7WQo.EDzVm9fKs','admin','ak_575bd795124b8853','2023-07-04 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$hjBFdQLCzM032yO5d2RjPKiS7.rSJZbvWYBBFvGux.kyORP0RCEIV','user','ak_471b9df5b506500f','2023-05-04 10:01: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=30638;

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


