-- Host: db-master-5.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=10351;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$bU2vNjzbQb.62eXmW0o3TVyPyGL40XSAp.dORNEE0trC5q6Ig/yVF','admin','ak_ffe4663a35d6a6cb','2023-02-05 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$zHGFjwwl3.TIMTePlND5QfZMcmhxhhQbN6EDjBhycJwHcqR3Diq2Z','admin','ak_fe0a17372571f657','2023-06-21 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$70IJ7fQ6qvS.iS6Ab89Al./N/fIyePUzxxfW/PT5tmZ2PYEJYAEmP','admin','ak_29d143f865b64eb5','2023-02-12 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$skC.PPqbKLnb/Mkd9ujR/n8eThZNL5KEJfEuAxZ/sncdCW3MdG4a2','user','ak_f7b5299ffc5bb981','2023-12-07 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=8670;

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


