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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$Oap2sqNA5OPn.AhnNJ6ZTySft.salE7/9R1ApXzpvPG5dLj4lrEzy','user','ak_d14040f24713bb00','2023-03-01 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$80ygZ2Ki5D5kf02H6o6Hkb4gkb3rMzcWMkeuhdHSkuAVoNJBCucru','admin','ak_067c6371b276daf2','2023-02-27 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$IOYK0iPe0V0Gfp3XN4VlIOQSuTntBFVKSjVleFh7bmUyUgaol9m/m','admin','ak_8e7e82a6e3b23571','2023-02-16 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$Uq3vC.np5AfmRsQrB1G.CPX.1T7tb9mI04a1koA5Adr985MYjaHP4','user','ak_8e4c217ffde3a713','2023-01-24 10:05: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=25092;

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


