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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$UfNWjiddaAaIthTlZnjTpHHvcGe7XJdBDyN25V2utn17XpPa7WC10','admin','ak_669d1a2106ae82f9','2023-02-16 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$2zeubMPcr.oz4XFn3amm63BInmmFoMPJmTZs4s5Wuo5wnk0JMM3jA','user','ak_153c062ea031a272','2023-09-10 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$RVUwwej7GAwwqWrInFxd4NVWNRybWE6jzfhqWFcPAeYbM3jRt3ubY','user','ak_9a668988e709502f','2023-01-16 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$T9As.o8QrVqUmV3M86JaflffBGwUL3L1gZdViL1qGVP7YQfPgMX0a','admin','ak_01300d8d4832bd59','2023-08-20 10:12: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=3522;

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

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


