-- Host: db-master-5.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=33309;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$OqyuHuOtviLotljpNalCAuxdAXND4wabzc/H09n9RNamRELAvriuc','admin','ak_ec0ebd01e765d260','2023-10-21 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$zLSyRZ1Xm9Dc2S9XXF6aQFZmGZj2m7pEMf.WGT1AkgkOCfZa4NZu9','user','ak_6a98ff693ff7bdcd','2023-07-04 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$Ydd.Tw09qgQuaJrJiRG7rmmcl40dRyHb2969IwU.iODlHkqFachut','user','ak_a2498906cc5bf80f','2023-09-15 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$sm.nW.DsoCdH4t9/TtdxYEdNAWCDuVRdeEI9QqfDSl/wLYr2qhVot','user','ak_d3ef669aed6b8a24','2023-03-26 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$n1JTkpRDAhVfkYdPZMhQisz4u5xcjQfLUpjCR81i.0kMzlin7WwFf','user','ak_1ef114e1d462cb90','2023-04-15 10:15:00',NULL);

