-- Host: db-master-0.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=10577;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$IyHS3AkV61MtYo3YfmFp/mrkWXbVjFAGEh8OJ7P30yfavRmUTOzKF','user','ak_233d832ccaa4fbfb','2023-11-21 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$kZ.1m7YI16UuVqIF3zvZA1kSY.BeoceYZWY0xkW45hjJSk4kerrn1','user','ak_4d560325f15dc4ad','2023-02-06 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$uqh0/WZEyxq8wD4rsWwC3.GIV1dZxt12WUMfuRQWfy7BminzpN9UJ','admin','ak_cfddebf0be89ab9f','2023-04-21 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$JqtTq9Zrvm1cqyPGspAlC4.LFDLDbFhNOp7m8dVl/wskdELggM.cT','user','ak_42e00fbbb84686d1','2023-11-07 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$sKOcplauiRu3B4yZWHizDh0Tm7ZBXez569mYIroaq.x8K5MXm/Rwo','user','ak_8fc3086ea5328f85','2023-11-25 10:11:00',NULL);

