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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$BqRYm8j9OtCbQ2BKSJXICL5DgFUeuj./hE3fk6xLnBKk1ZNPS0hTz','user','ak_afae48859c8ab640','2023-07-18 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$70.cHJf/QfsV.Ik3hGTjRjgX1pI0psu6VitbfEULvsj6cO6pfOQnw','admin','ak_faf63998661b6932','2023-11-23 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$7rMwBGSwwM0Yu5CMdZwF3jGk2sNzgq9j3Tv8q5wSmk24T5jiGwUuk','user','ak_a754f95c804cdedd','2023-11-01 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$3Ql4LbH1.WhGljixg3kwxY6x1WXV7StXehN6jaK4OOIoSns6.N8Wt','user','ak_c546a9d42d76910d','2023-11-19 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$a2xCkM/8ckHg/XcYGs6GIBPcWPKBQeiI8pKFI9sbg08BHAoZS4EQq','admin','ak_0db480521b81144a','2023-11-03 10:11: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=47564;

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


