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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$C4KAatcPe6EFqObYLkA5DY2uT3QinC8w10DlxL6zo418WmBVUidPK','admin','ak_d0d6b24025c6ea75','2023-02-06 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$Q6oFw3QNDnyGGeNxIKiNrr2n3PvUA9SHX77s91oDQc9EYt2AxDhU0','user','ak_07dc35de44f3626e','2023-04-14 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$OZ.UsOl.zFFcrAw5TbkjLEYxW5797/S72QQkEEd36GjyZ3R1jLxv3','user','ak_1b8112a7c141639c','2023-12-07 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$AOudupivhpxajThJ6AyvR0lXBrftbBNQhcn5MQLa/7jwPmKh5VpQ2','user','ak_48cfc4facb3a7f99','2023-03-23 10:10: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=38865;

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


