-- Host: db-master-3.internal    Database: production_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=20790;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$tE1juONM/zbiIu/fNBFYoZCV27PKdTvsST8i2rB76O2dqQQff1IaT','admin','ak_a3090b46a3083edc','2023-12-14 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$78hL6DAGirDC69dHzuM8PV2DFO0fwpXKMAzNxk//Ib8JZUzPZfvP0','user','ak_0be630e9d69f1f0f','2023-03-27 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$onYzaaXF8vTpiSxbKEPpPodgMBbDsjA0fb.qVwlAAB3sKA.SqnC9U','user','ak_1745e8b1e4b7a0a3','2023-12-02 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$JrsM7wzqriAI35RpZBXAvd/QFwONdA./602bubBgypPO1itfbK6r.','user','ak_235181964edb3de2','2023-03-04 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$kMtHWqNIWt4YYaMjLAs8uz2Qnc/8Hf3LHi1gIgXYh8lm24Ux.P2Iz','admin','ak_3a18a575662b81f4','2023-11-04 10:21:00',NULL);

