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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$VVLD4vG7FbRqKQgiZTvddYfNd3nEvKOZRCqBTvklxddcDCNDBWuyl','admin','ak_c6ba5283ba84e7ab','2023-05-21 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$I.b9FocBhNINR2PR0UQzESI9ZAqCbkKVNEiNeHKI7sXWqDN4kBikx','user','ak_bbb5394bef1b5ca2','2023-10-27 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$FoUzKJef9jhEAn3/.F3BFu0qdman5YwUQmcfh.FLhyWFi0wHn1XoG','user','ak_a92b3c99ce8a7eca','2023-02-01 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$nUUBCjBVSHqYB/REDyuP0xPKrEvqvy04auveMT5CO8lETXbM/Az9E','admin','ak_b8374a637c3a5b6d','2023-02-21 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=31763;

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

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


