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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$7B11ZB24Li2BXgf1t3WFfWuLuOo/knekuXsuIrVS4l3/C03a6CdxB','user','ak_e31e55dabb225e13','2023-01-12 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$fQWtevv5670Vc4uepazFbojUBj.p8QFT6gcG/GYqE6NsYGDJccZNp','admin','ak_874619f90003b751','2023-11-17 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$gZaO0NIUwdvUHYkAPNDeRom8fiHjqt2OMYEI4Xt5c/8GqCk2MIVPa','admin','ak_6723b49ab3d92e45','2023-05-10 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$Bu2ZYgY7/gESdUYBkLTI78nLpQSDWwfbb5L7iBp1vPuIHKZ0tL5KV','admin','ak_8c2b637581efe2d7','2023-01-04 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$1zQ/slWGceuvFeG3u3EGz8uEIiJlsvSLWCzM2q/Jx0dw2B93R6ySn','admin','ak_8c2a51312eedc295','2023-12-27 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$YSJI2id7xgBIs59HtHYHwHhkQY4R1keqokvtY7IW3uh7GlauPs8BA','admin','ak_ec4291f800c04d51','2023-07-28 10:04:00',NULL);

