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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$sPLEPfBspAxRU9Q40imHB/R9Nvj2uLWdi5PFFU7vvXbvGk4HJXPHZ','admin','ak_5ad31d062123c1f0','2023-03-08 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$tERHitlUyXe/8DUKvkUG3f75YK.K5bMa9IVDdZMEvhgl0y8CVqP5L','user','ak_f035199bfc696c02','2023-02-17 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$88.JZNhMk74ec7prfxhbSPJM2vreHkyckrKS8tHK7F0OeTK9nFPcs','user','ak_5fe9d9008e8b6453','2023-01-05 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$Ki4ryCqWsPETemng0dCxl8XzTH9QN2T1moajHq38Z3BJDdAyMulh5','admin','ak_cc8b53a06296dfd4','2023-07-24 10:19: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=18492;

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


