-- Host: db-master-6.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=10754;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$8lkiUCC0cCvJblSvitsog0MmhQMpCpH9YCqQe5HTJgwk7Uq7SnwcY','admin','ak_616fae8fb9252d9d','2023-06-12 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$R/8nWaKC2POa.hxKXWLZu4aOq8vDKJNz80AP2wofEMI9mx4NOUfVl','user','ak_6200c21b25f1d87c','2023-07-22 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$OMYAZsr/QCDK/DUDhMqITq271LzZoNDO9yT8b1MZyVmey6AaEiWby','admin','ak_a983b55abbd5b333','2023-01-09 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$F7cwT/I9Q9XyF44g6gfAUlF8FYMN5QrEvgAm3D1SOKil4BQAOvsNH','user','ak_f48125d3ca6d0745','2023-07-25 10:09: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=39973;

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


