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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$aTre/N5ZoIujH6uqgNbMTKK8th7AIMyCT7lj3VfzmtjAmsMW1Aezn','user','ak_1f1dddd2670fda16','2023-03-09 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$NoiN0LHVwYHXhrE5A0HP5DM/Bp/ISO/vuPxfybVDg2P1OuNe8VKj5','user','ak_44d1d30d14676177','2023-12-09 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$ezz/llLziFtM1c/ir4FuHMj6hAbTyM/BmXkb5Liy34FdAx5dOSIOy','admin','ak_57d52660287905bb','2023-11-07 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$jIn.9l/.nEC2UCyqjMxZu/dFt27gxW8q9a0Hoxjmv5spTs2aWD0zS','user','ak_e7d14d342dc4c4ed','2023-09-17 10:17: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=15401;

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


