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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$YEMpeBpoU4lXn1xHS9DGrERkeNL/MBM7yMIx76kw2yf2bUyaKXBkG','user','ak_1bc8266f1e39ef50','2023-03-11 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$i.la1/OOiuQe6Kd9LlJwPaBcZOIqghs6lgOkH7vf2YJZhlA0gYbee','admin','ak_5bfb3a424178bdf1','2023-06-10 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$kf1yYPs9ENt/NBzDSCbW3YhzaWvSKcDzKqp63KtmWkAPehW7kVwkO','user','ak_238343c5882f28c2','2023-01-01 10:10: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=22128;

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


