-- Host: db-master-4.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=16707;

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$JSk6tkyt2cac5t9Il6BA/mym1ZWD3QtsKxdlcKazSsKVVfG//7kLr','admin','ak_b151b2c4640d899e','2023-08-01 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$akAdgTIUx/wCxIqLqFFFi//uJS2xYh2E02kw0R3PsTDzmFEKL1wjX','user','ak_d9d07d381b9a7d4c','2023-07-11 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$abfi2DIsu/ahm4RbK7zL0CeVdz4QEU/C6bOqVniR7zaE9gnXvRbAs','user','ak_533af802252b1a90','2023-07-25 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$lq/HJF6qHzm2X0zRcUOY3IM.yibCF272rF4o0717np//85dfzXRq8','user','ak_72c9ac04f282b287','2023-07-13 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$l06w1RDs2i/Kegu.Za4/bVO3mKd0gPUqDl9ERf/TW1LgMpSe42DV/','user','ak_4d3e2a023bf7d641','2023-06-15 10:06:00',NULL);

