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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$KB37Wnz5AFeulyeMjlB1vBlb0xIg6ETPpjoXlxum/XAtTf8Zm1jlc','admin','ak_cc2aa3c8cf834b70','2023-05-17 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$PY0ZEN/HGWf4qinofZCbqfiROtNIDKAfrKO35WiWHSuOgbTBLqzKb','user','ak_838e04be1067c078','2023-09-23 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$ikqVBy3xMuK36eX9AVgguRgzSncDhi3ilDrarnd9QubZVxHA/.VjE','user','ak_f12777a8ef637549','2023-05-16 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$6zWCyvyvbh3HH8MRopWeoXSrsZ27Hi/fvdVsTQuf9ddbwLKjg0ENk','user','ak_1e1e0c1c261be5eb','2023-03-28 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$fsIfBvgdoVkeeo5dP/FByre0ChnPbQTo/aMLKWaiOZg2kZZUR68Ei','admin','ak_978c938f1ea80ca5','2023-02-23 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$oxxsaxRe63kNMeNPaPOL1LndfwxU9i7wCsmO5gdH1Mei/6LOXu.VF','user','ak_6efd21cfe21545b3','2023-05-10 10:17: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=40910;

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


