-- Host: db-master-2.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$fXRrh.ydWShazKF7NzKRxUkJBqP/S/UUajaGreyPWoUD/q8QYVte9','user','ak_b8acbdc64d88a87f','2023-10-10 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$yshIEWIit1negjD/BuJUfCd3ymIrQH4A69dCxIQCHkRuQ1zP2Yppc','admin','ak_e85d1e07dceaf191','2023-08-10 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$SXDJvGwwiWBRrdX8mg6jlcrHfkklaiY.mr15AzpqH5Hq26i5ilbPt','user','ak_8b9a502a3cc6f510','2023-09-10 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$AQSYJdGvf.9O2iMmTcTduTq.iGnPpQq51FiQVJk65LaoEC/YSoHSH','user','ak_4c574102bf3c4e8f','2023-05-27 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$fcntBF5el5yfc.badXTPxoJCWMAEVtuP8ufvN95FBxuA9fPjNmijr','user','ak_699e199210811972','2023-11-03 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$hXEnbJ6z7InM9yJpGuODnWS4ns6/.jZrn76/OPmyTXV3kmgQHMsOq','admin','ak_cfd8392740cc0f96','2023-05-28 10:04:00',NULL);

