-- Host: db-master-3.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=19645;

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


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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$bEQ6qRpzia/Aj/mUAraLa9sHC8N10MpRsCN8wDVOaqX/NAJOpDRBT','user','ak_3a5b02d907a95ad3','2023-01-28 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$dVBc5vlSZd68bdRH2mVfLDfC9iu9SRRd.cpJ2i857HDdAgJrWlACi','user','ak_f3bb2ff3a31cddf0','2023-11-02 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$IDAcBOoBNa5fPspG.Fl0qlL9laq3lsW/toEFEckxpReoZq4kk8o4e','admin','ak_df5f4d319b54098b','2023-10-09 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$FVAMk3PWrjBxGJ/vpXBDaE3Yq/N1WG.IGdQtoPNrJCPE1rSlpAKBE','user','ak_5c43a3d5544011f2','2023-01-20 10:07:00',NULL);

