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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$JRXAD05X7S5QL5ENtkM3.u1aH./DsCbEBp36KdNlUYgrwV8zHRc4Z','admin','ak_5c5123d43bf68dad','2023-02-18 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$CARrGOxbDKOWl7BpAJKtjAvqtTdAoR79yFIwyk/gywjSCvmIwjbL/','admin','ak_1301d37c56c86c55','2023-10-09 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$Iplu9WkbTOzrHJh3VhNdl4taTlMNDnfV1zSLKzl4/GhM7tIuZFVNC','admin','ak_bc4566bcbe280532','2023-10-16 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$kXH8esq7fIw4/qj.xNZo1qMljRdGlmJHxmN3jTl7M1DHpfxQTqi3l','user','ak_1c29a75143fa9051','2023-05-08 10:05:00',NULL);

