-- Host: db-master-6.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$XChuh3GUqMipL./LQCdgEAAMagCBXHPZG90RkiHHdmzdclsnOiOdg','user','ak_821279eb70e493ad','2023-04-01 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$Y4O1JhLmeRZFbHb5bUBQaDfFuqC1bxJwMhwY0hvHlWHqtmTX6m1Yi','admin','ak_4b10dc5c2171df97','2023-01-15 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$4KIcbhWdTtbwQvUZFI9KrNNvcDCnYB.K4C854/1eIqqM0Fwgd2Dsn','user','ak_fb012b2562a27d54','2023-06-11 10:21:00',NULL);

