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


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$omnsFOMguCK02NQ2cf2TtWU4ZiDUl4CUEl0VeX8Z11FHRUMO8O2pN','user','ak_fc3351184e86c6e7','2023-05-20 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$CgvQWzuywgpUMG/wmyiUgXwXJwr4RkKK4mKCGa/I9.JDRuVqnXXwJ','user','ak_381f68086872f02a','2023-07-01 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$C.BuSxQOq7NxORn0SIITq1ScZh827oFBof2c/s31nX8V.Z1m1cxGP','user','ak_377ef344a68eb074','2023-08-20 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$3FNpDrA4W51bLaiMbo3R7mmp5NmDHNQciPFbCvYGj2PYlFGVLF.s7','user','ak_eaa2b2cd4d9d8e90','2023-02-20 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=11035;

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


