-- Host: db-master-9.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=7861;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$YxCVD56BRYsnQG10E6yAO66oySq97/M/syXYBrDKXimDjF2VEFgGT','user','ak_a425100c06ab49ab','2023-09-05 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$8mi5itli5dadgyadbGgieQFeyBMqNrqyslDD9Gn07SBe1Sg6M0Lwd','user','ak_a4923400e5551a14','2023-02-09 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$IaJmGrGtYTpCTekp9tVBiG3aClBLnvKpf9kfWqirFiiL/o3BQOypF','user','ak_aecd5d29844fadb5','2023-05-02 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$kMaymgX8uVp.PrWppPigE6TxLiA31qBUEgfSqD1ccQlmR.sWMpoIU','user','ak_46a54b46c4754fcd','2023-03-23 10:18: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=48702;

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


