-- Host: db-master-8.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$ZOgmxuMGASAGWPfP5LTSBV.1Cc24htCubuI47UoJyeOtznMR5/NDW','admin','ak_1c13481593bf4c7c','2023-05-08 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$4EeTucyyqXZVv/y9K.rZs4uNlFMRD/PSlOoxoTntKrQ1MWRTQShtI','user','ak_af2f8af533de176c','2023-08-01 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$EjmfiBoEhS6x1uKNQX9/QHsZu9ek/5sA1DxfFXG2BzlZ3bCqr1taj','user','ak_1eb9dc138f4dd9ab','2023-11-03 10:00: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=47609;

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


