-- Host: db-master-3.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=32451;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$NaKM8hgc2DPr5DtjiGEpxS.4kawHBa00SOFsSVR4mqTpwWNNbcy57','admin','ak_d165138435f66c43','2023-02-22 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$buirGTKZMX9GLR0bz1561MhZ3.DgNF/nSfvAndrbYQbUH/PBknxKV','admin','ak_c8232d20bce6ea5c','2023-02-09 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$1ZZeZVxjxZxjxju69E3bu21Jr0uOQ4XARWyxMQDbN4dRLq296i3mi','user','ak_ea2e0ebc0daeb55c','2023-07-22 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$6WU7RJ4/r4tbUF2c4k/3A0SW5K2Kntt0o38Xc7TPLo.QvMEdQuGAZ','admin','ak_5f07fe24a523fd94','2023-08-20 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$We4yB5aCQDKE6nSDtLC.CJ/pMlZs/yNr3arS45ijFPOMGFKgcSnzj','user','ak_b7fcbde27c833430','2023-05-07 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$Vsign1W2iGLFpzktYP.pcGL0ZCk9VWlLhMZc6ld2FyIn8aEPMAexz','admin','ak_46e7e09108f84ce3','2023-02-09 10:07:00',NULL);

