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

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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$A5HEh/UehvjzBLWg7nXXiHnDRs6lDXogbdSiX0CpVU70gkUSCqpQj','user','ak_d5b4b231e87712d4','2023-01-18 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$atBqPeU2C/e2A4BZjE4AVDn8qc3cPQQL5HT1Q.WWDl1r/7eLA6m2m','user','ak_eb7f6c4411cf3673','2023-06-10 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$8hNfn0.DnvMkQjsKkc58.FaO9e36XsrpD4RWqPuXn7VFrUlnAr7/1','user','ak_b7f8e02928f5205d','2023-04-17 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$g6uH5JH54jQHEnFwCcmjkmhtjRPG.6s0WV5RRiB5t2XH27Z7b2APA','user','ak_ba46eb8826c0813b','2023-10-11 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$LRKclNlTV1CeXtxQzWr12bY/8Vg/U0GxXnoCyK7TOkJlUgxCswd4.','user','ak_655a48d2c2395d14','2023-09-12 10:06:00',NULL);

