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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$6.P1SMBqhjQhEs2goe6.hfQr/hLRhvXXQZFH1EIsB0JFs1Lyoske9','admin','ak_57b5d5e1a4374930','2023-03-06 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$OFUip/tYGGpcbMBVWCbBSXST2PpxPAWgsBep5eofn9OWA7dqS45qW','admin','ak_47e2b1908c320871','2023-09-22 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$AOjH07yCqSxuAPNDigVxS5mYejX3V3dAh40wFEOMWI/snfoeEehkL','user','ak_f05443959da499c9','2023-12-17 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$qeEmrSakrw8RCHno56U6Cf1ySFRhPnmsOYP0bHZw0sgm9YhC61Zrd','user','ak_3adfb19c46ed3af3','2023-10-22 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$0Rrw0ZeRHANmD8sksC0H5TecQ40E3xwSGpdnUBU6STyTupuMRT3g2','user','ak_ec78d0849879cdc2','2023-02-25 10:07:00',NULL);

