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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$DLUSdJUk/ggOEJW3m9LP8qLvfrpW5bpMkvSV0VzHVPDNHTkGuDJYL','user','ak_34d289743aa196e3','2023-01-19 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$CM0Yqbd4FH3mjtTGfW9N/tmgnjTT4T5wEmO3qzjkzRI5/Bkf92BL/','admin','ak_574ab46bbd72e5a9','2023-03-23 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$o6gim6/jDsInsbi8m935MbmgprfUUhsS.Oe2Fn2jPCjx9RoXHv0v5','user','ak_3004b4874afb08a1','2023-04-18 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$QEG./hS9DKB60EqAa682aosuYJfncofP//wJO6gj7l.rrDXwdWXCb','user','ak_152ae517a10b461d','2023-07-27 10:02:00',NULL);

