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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$g.ZtiOhqVcW/UOPPXRKORD19qqsO5eIHm047f7jjUtixPNybK4Nk1','user','ak_305384a12d1cb88c','2023-08-20 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$3KodIcJhTXbz4rWpVsH6GDSAV6Ets3YSFIXjaffDZftjreRCqa4.r','admin','ak_7f0e4c92deb22a90','2023-12-15 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$xtkDs1Ff6xJR.46v/eEnERxAh1t7.ohH7xwtMIRsug5xLFqzOrO/A','admin','ak_ebd523ceedd111f3','2023-09-14 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$UnZ.F18aLeqHLL6f5z.OCzP9OJsbp3ZYzUPJWSNcuL4YmHiE7NZKZ','user','ak_edc0b690dd8c47f2','2023-04-26 10:22:00',NULL);

