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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$VsRk3QOcXoswlW3UDLcePhTFD4ZQ6hTiuWYK7F4/Cpc0pE0StXdQC','user','ak_ca77e4a8b00d57a2','2023-10-23 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$4BXqJzFAzM1lYf8UKlAIU49YULzP6elYPYgkh8JHVcMy92YG3KFNV','user','ak_028c90683ecd11f4','2023-03-21 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$1JbIbjynU4Dd3mxBXMLO3w.R3j9T1JJhLReNqLJP.0ntMQDHZxIua','admin','ak_0a17ce254beffd7a','2023-01-10 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$gj/gO6e1JfPkA8hs1iGRDN2/d/Xr1tucvMwEIkwCEGYVlrRLXelQH','user','ak_cbf644a400cb0aab','2023-11-05 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$T9YqTEgRD2TXheUjbbT/pcUIagEibPJMxz4MH8fiVgmkfZVmJ3Ouf','user','ak_4ace165ecc45b686','2023-04-12 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$ycBH.npyrR/jNM3azFRHeYQaQcKSna7PZQDggeNmpDuF467.D4JY.','user','ak_b2ddde6b31a5a7cc','2023-09-17 10:19:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@company.com','$2b$12$q2tGN4q2oEI3niRrs5xIIW7eDKqYz7A89O7sMRPdUviVGoV3KX8Fo','admin','ak_ca40ce39196951a0','2023-09-07 10:08:00',NULL);

