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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$3qjiu68P5bkvRLkUpyL0RSVjCgPQS5j1Vo0KVvllFu42fP27SxFEH','admin','ak_572f1effc950f890','2023-02-07 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$SYIq2nq2Nv.ASPCloz6AClM3/ktdD61r..hQ0KI8r.aet2OiLcwhF','admin','ak_fb291be2276bafc9','2023-07-04 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$NrF5JGz/cgV5rri1YidV9RPIOtcDzqL9IdTtHSSuE1/2gHbzWnWud','user','ak_e52abec988cf006c','2023-11-24 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$kr/sPUxky3o5EoDs3CrZrdsaOSeIM2bErdGGrhLdogglae8nt0/k2','user','ak_825a02d4900d0ebe','2023-06-17 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$rEeWLqjU9ODT0Onvzc.mD.I9uU9NEudjx8YAtJnvjMZzwn.ZBpG8m','admin','ak_575cbad9250dc86d','2023-07-18 10:09: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=46722;

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


