-- Host: db-master-8.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=30605;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$Q4xKOG1ZaRQjX.EogTn/8mj9Cd6yCdIlPOC.TR.uz20JQBZl0lpx1','admin','ak_b368b84854122446','2023-08-16 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$.shLT7Xm/PHeOb.fhKCOu2HosOMuqIUuhIGHBYyz612pq9I0xesjR','user','ak_83e35206c042c832','2023-11-06 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$c4Wi4r1zip7ddphtXBhN13Cen.tw/6O19Mn45ogcGZN1XRnfm46lV','user','ak_2ca9f7da362f8a0a','2023-10-16 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$ouiSRWvX38RKwPk4GUWi0YGXM.s0x0q7PYSEaLDjakdu4...SDvhg','user','ak_35ce68961d435671','2023-08-10 10:12:00',NULL);

