-- Host: db-master-2.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=48233;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$JPBI9QJQwfr6GDji4iR0rVPRUGd.LoURsoY22f1ZhtEqij9n8ytPq','user','ak_702ae82ac8fcfb23','2023-04-03 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$48aiLEQRa0x3oWbZUH6KgofuILMuppQlQ0Y2x1K4LaMso0qv0Db0K','user','ak_6cf458332f375945','2023-01-24 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$aAA1dc1x3HLEfToc8r2JW6yRP5BBeovkEetcUG9Ff3vumfjUsjq6/','user','ak_c225254c2a9773fd','2023-12-20 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$NEt5eqaC0CWR2o5TfKx90cF7zk3g.o/lR1lQDd9GzngOpYbOXRxAE','user','ak_fe58abbe326597a2','2023-03-12 10:12:00',NULL);

