-- Host: db-master-2.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=23779;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$EB48UKhzhBB3I/O3r7jmcbKIrGS8j3nuOVeysQg.DZJ7mcuuU81fh','user','ak_add818cb88da45cc','2023-10-05 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$Wpcc.UIY2xQVh0bhV3d1eQwmdGcIVOgz1MTOdaD.cftjdwfH.epJ8','admin','ak_7462220566cee791','2023-09-26 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$eaQvZIazOkI/vAEtedVclzZreYizO7Wb6K/sSqsz0Z/wc6dylRe7/','user','ak_0d55dae72e63eaa2','2023-06-10 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$X3szECi1zi.vPOMQUp6tgZ51dykT7prPkIzlAfYrPMcIf/iNsBaSw','user','ak_93ec3f73473a807f','2023-05-17 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$xEf7NCxO8dGMFGPyc3Liv6rWD4hwhqBfRNi/bT4zkdf2LpSmXaHBw','user','ak_02d05f9c675ec638','2023-03-19 10:16:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=10055;

--
-- Dumping data for table `audit_log`
--


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

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


