-- Host: db-master-8.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$M8QVM2sib.uk19w5XuvlxNbBAWSdQjbdJYixLIfdu4zL857YLnyOP','admin','ak_a9b43c25afd80872','2023-03-11 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$lxLvSK26Bfc563u.rzM7S3uSCdaxacYA5dNeLVYrQgZGvms2CLcfv','admin','ak_513e11ab7d6121dc','2023-10-14 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$LEVsyhfIWyDAu2uqa8rp5Yaa8lvEzp4iKiqOmRyykKlQfc9SqGl0h','user','ak_fd4a1d5316f5521f','2023-04-18 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$tvKG5y7DALdy6XEymmlDaMsMTXnHssIiPpoFCySkNNiVR/VEtg0Zb','user','ak_30f3f90fa47ed17e','2023-10-03 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$DmJGuKIzvh5GTsN1LF1OpE83pmS7iKUkMY.BV6ztUsT/ah0ncfWkz','user','ak_3aa5731d52f7adf2','2023-04-22 10:21: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=13627;

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


