-- Host: db-master-1.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=32635;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$v7yUlR.1uxrzsE3FCz/cRGSiA73RT00OBJIP0N1GF/s2JdwaLwhwX','user','ak_21c7aa14138b80ae','2023-06-19 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$t0KKsV9UGPG8jeDlKMcmLLgg.bp4tmSbu3M2pvySxSUwFFsaMF5yK','user','ak_1c6f24cbb56e04e0','2023-04-13 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$LuLVK/vrDRsVPMA/VvT6nmebODif3z2zxStP4RwUoDlVt7U53Uuow','admin','ak_da70c0ea31e8b58f','2023-11-02 10:08:00',NULL);

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

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


