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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$WNvwijvhJmQ16sSsJlAiUzAgFm3rOqBJi/uCMHIOo3qnQv.kpKqp3','user','ak_d50b1406992dc3f6','2023-12-11 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$2fIa/myp1dkVCX8FOA.kYnBLfdy5niCCv7VMXgSeGWwTH6uLiecYg','user','ak_da801144a6af62c0','2023-05-02 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$503yTHR2GwIPTUsQ55jcPqlV/iOlMVSkBs5PySTasCM/6uoK0I1JW','user','ak_7073efe492808749','2023-05-10 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$nyOyKQ7W5Sedlp1UoR.PMnBNYS/JgJsrACUb5zDOK0sFOGTUSmJ/u','user','ak_602afe8697743c9e','2023-01-03 10:16:00',NULL);

