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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$jdOifhkeoRv8MtdHGHPE/RCMIzc3CMBYHhE6kmf.okyb8F6tE0g/d','user','ak_dc8cc9916a4df6e2','2023-11-07 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$N8MeBD5pCvQ9DBVkqSP2kYN4tmNth.c8kW1PfEyHix8onEEvYVSM4','user','ak_c6e78a22626fc124','2023-07-11 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$VRl1n5dXAhk0RomIOMxmVAbqcSAtn74P5ib71bfscduC3TL/YDmYP','user','ak_f547a3197f0a48d4','2023-12-12 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$V7Jc3bE0sgT96JOyOiuQVq3KxHIxBA7UccJDjHvZFve9PpXZ7oWYT','user','ak_5500f75f4a5e9f25','2023-03-09 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$Uuj8Skc5220RuAboCMZtu4B6AOLH8svw1W1yZWTQ91AMT8NvhBlym','admin','ak_6d2937df048173f6','2023-06-15 10:00: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=37343;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=49537;

--
-- Dumping data for table `products`
--


