-- Host: db-master-1.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=28175;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$G4rLFJ9jViFa.37oQ/bBaFOQAWBt01TdIXW1raJidm58AZlT7v7.N','admin','ak_c4203ad57dfe58eb','2023-03-03 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$F/oSHLyfPkIGq5xiNBBMcEbK/GFOqkXrYoyD.n3yfx8vs5R2GNU.i','user','ak_78cdff18d5b39bde','2023-09-26 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$FWv5b94lk66SwMoKCeh7tE8Ae3Gx4BLaWOCUdM/G.N1gBWyg24b2X','user','ak_70415a60ce293e5a','2023-07-15 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$V54.2i0Al87iEIUJ7Z57fzEcuaaEyxfD5ZrA5.dQsheB.VVRsXvM3','user','ak_221f86cb256ec840','2023-02-21 10:03:00',NULL);

