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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$hOVXuba3squMJEY9o2jAB7K9V3XJGiD9aFvvYJy5fc6y9Z86s/cy8','admin','ak_87a7925c7d8021eb','2023-03-15 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$qYZhQnxurKiaXrABuSxIqcD/bPjSzpy2/Tl.nEJkWNVUZgSfM0EkY','admin','ak_990f35b1794989ba','2023-01-20 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$MceRMGXr1GbTzXdvESt.9BcNuhlO.CqaPHSfS1qDVBsRrw5J80TSv','user','ak_c06ec78f82fb61d3','2023-05-12 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$nkU4vndXjJ1Wy802cD.5uB77tL.I6/HA0BdoOQAeQrl3VqtZpnPP9','user','ak_d699605cb63b2e36','2023-05-12 10:01:00',NULL);

