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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$wWSHrworG4PLbJ2lcWCn.13t6/Q1IRUugVqoTCxxzuhK4pCRYQsZx','user','ak_f3d5b6eeca38cd02','2023-05-19 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$HHeyWoG8AHI.9bwBsJhaHh2OJT1Bjy1FRPb91mm2EmZbV/2kMruHM','user','ak_29894c2e652be0cd','2023-11-05 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$T8aDQz1HrBTIGUoAPlf2WNnXrj2BGdKVjz3gx72ibSSBF8pP3Ldh3','user','ak_b200f6cbcabea051','2023-08-28 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$n/EY8MYjGsH8CjSEGNVECgtqz798CWmIBTcdHQAcZiCPUJh.uGcYi','user','ak_8cd7b4f74c6f6e5d','2023-06-13 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$7yzGc5qT7MfHJaas91E.claVIUzl36U5l0CBiQISzp0R6Zqd0bXd0','admin','ak_a1572567018bdf85','2023-03-24 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$/MJigIBE06RPQ/UUBi9rUbK/GDYuBYz0ri4F0ycs3ggdHk6CtwVzS','user','ak_32b37126802a2b1c','2023-12-14 10:21: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=4463;

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


