-- Host: db-master-4.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=23405;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$TPxq5TI4WQPZPozskBp1qQmZbOb/EQR5TJBnNKettPapVTqtzbuoJ','admin','ak_12c9904c27ed54e7','2023-02-21 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$CCC2uq.OcdYrBQud91mkZhFdMyEX/.DNeEl9PCkpf2Jvkg.3Ejk9p','admin','ak_63db81bd9741934d','2023-08-13 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$XCbOqJZzTxYaaFxtb1hkp78RLbwk4Bf0S3a/q.vdh60X3GLM6xxoV','admin','ak_70f8d511623fe437','2023-11-20 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$KuSvDbmvStDqMRYqGf6WRbzwvl8fXll64V1WDGW5EOt3ia2MzII8W','user','ak_1d4d522f6fe623a1','2023-03-23 10:14:00',NULL);

