-- Host: db-master-0.internal    Database: webapp_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=8258;

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$xAwijjTMnKvy7JX1gc/NsX8YOjrvfM/b5lM3wmwZSOfIrekRQL1.2','admin','ak_049e9d735c017e79','2023-07-03 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$8Pcwl.A/2PgohNr3jyfGtLJ8VjV.FZ0vbR31m66WhwY5ygV7dyjjb','user','ak_ec4c62043832b55d','2023-05-15 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$78BPXg9JPgewtdgY.Hu8buhO1UFNKGHLOlx78LcW9u5843QIVP/9T','admin','ak_d7b54e24323e4779','2023-07-06 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$159of3NmLDgBCyB3oa3PT5pjoihBPraTA/YtOp6xqN4FSh1hO/q0.','admin','ak_1af917cc66870cb7','2023-03-09 10:01: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=34285;

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


