-- Host: db-master-1.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=6656;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$USC3Mp5NCjTdyj08vm99vy/LXy1736sJ3T2cO/TgI.phWOPgTSuRQ','user','ak_1b26c71a54c6c939','2023-09-13 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$BXDg6gtDpYpYvp1g7c5nb3ZrqkgQ9cWTnDgWiDT1Dju9LN/q7gmxn','user','ak_60b24871cb76966d','2023-08-04 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$hHurLXg0RSF6OotW0RWZvZkMWDbCDideFzRQta.Q6W5Ta5LYD2tHX','user','ak_db5649e489dfc81f','2023-04-27 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$We8mCHpknOzA53fuYQZrovWQeJAouQLyKHiCNFSHdwtm50vI7erLm','user','ak_e80976ae55d0b09c','2023-04-14 10:20: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=4117;

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


