-- Host: db-master-1.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=37154;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$IJfgrS8QuI2S8.JeqKpYLctuKyQ62nCRNM.vpf4gFVm1Ji8SG0AMX','user','ak_2b918c76d991b715','2023-09-01 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$IU9G0TMYfylElzomr18K/gfRjrT9KVqLAHtcwMRdEyftLQXfzL4ns','admin','ak_038b99d67d997608','2023-06-28 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$dp/WJeFkxmsR1mVMswT8cw/6Jqihunb8KnVwu8ih58Yd3QG.BkW65','user','ak_b1100ecb81748588','2023-10-16 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$9OoFlVF5AIQ/Z2xjOJjR3qpFeryfFGwkkRyBDQuDWQHYG74lfYYuh','user','ak_606ff89f33ddd69e','2023-04-26 10:08:00',NULL);

