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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$.Jmn9BCg/elzQISmb9kKDA9chcScKKEBJQlxDognOTLB.jnmTXpmP','admin','ak_e2a8ec0fe5350321','2023-08-03 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$uul1p9HULpPAV/DR4m2EynQCsuKli.fpPFawoHiDRr6LVVils7dXb','user','ak_4f3698a1a95f7503','2023-11-17 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$0OlAakQOR6G4nyxMs4qxcnJ6ZuQMliCeGk/6Jc/cGPaAkSSD4gXrr','admin','ak_03410695f11560b1','2023-11-19 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$l1dKdDdD66Frt4jfQfntz52Z7I7wcRDCaujAuxuX4Y1XixdObnVcl','user','ak_c4ea5876c0bce3a1','2023-01-20 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$CL7AnV9JHj7iH6odf.JClE.AjtPzMRcB0Xzdaik7xUUxi0uC9EvM0','user','ak_356670fdb9a4b1ca','2023-06-16 10:06:00',NULL);

