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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$/0eFuSPw46c4aNx8sCh2/5d0craytL2uv5k8z73AQhOBreLBMonkx','user','ak_b8e4735ef6e621d7','2023-09-26 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$7KJfbmbAGlyv6Qkb9uVUP6a7ps06jgaiG0qG2SmaO6gweW9cxEpHt','user','ak_5ad82488456cc37f','2023-01-27 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$n3TY7VP3D4LVbcQ3y.3U.zTMocBpp2UJ8m6hNqd6BvGrIS3nE.q/s','admin','ak_064dfc48d9fcbc48','2023-06-18 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$6HHOCuLcgCoXuZhX7wrWdk20AM5ERgzZg.eSu5qkS5yhtgIKoVADy','admin','ak_d27dbc89ff6ab283','2023-01-20 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$ZCqx0Ke.Rw6s4Xyj.jcDUu.f/s7X3A7rWZxj1RQVqHpK5KxFIvHLz','user','ak_7661f1890587259c','2023-04-14 10:07:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=6430;

--
-- Dumping data for table `sessions`
--


