-- Host: db-master-0.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=7976;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$7Cnbc0DzvWAf95oLDT5So7hJ2LLM77YiIg/Y.i4FToQ50EysbhlTy','user','ak_5191f0bd59f8873c','2023-04-26 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$V6yuyFpu7TQGNlPHcHkMCtcT3ePsHkBGQPYWxPgWsvl4g2LdU6LTS','admin','ak_adf9f026a3211146','2023-01-10 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$XFR5dPbLJAXb3qEDvm4s4K7ifWkXWW0mW5WYg3mKs1jBb4fIHJpZi','user','ak_6ff0316bc8486915','2023-08-25 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$R3cJ0BHlQuwxOq7sP11vpcPvu6a.rZ8EEO14a/yqgy/MIS5hsiAMz','user','ak_c40710719a607582','2023-11-16 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$xjdcZVgffOsyWwHJjvBeQ/7j487Jm0psuxhTsXWe4VIQ9Jrz223zk','user','ak_1e653727f6f3e5bf','2023-02-28 10:18: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=10304;

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


