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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$hvqBfMtrOlukW4Ikj7XdiRXi./m34BgnCZ4xBV/YbKlrUcygRisjz','user','ak_199d65726485e3b4','2023-10-11 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$vUS68XRGdRIiOAnt8VvE3LMF.YdzU.GLnzePLh5ZbAgSyHFzJs2Xp','user','ak_e5203f3e0594b3a7','2023-08-12 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$x4mYPkN3UhRS6BUBZJl2mQtxizv0pkAU5NmOMfCSKsKLX2eHMoa4J','admin','ak_d3b3aa4677c17bc4','2023-12-26 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$y.hmc7ISiQ9Lw0ZTNiks7FYe00NBHMMMQVzytEYdLpdzj/Z8IecJY','user','ak_232d9b9d7ea1245d','2023-05-25 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$wmoonbyZhDA91dBGUhkgtN7fajptJV2yQX6f6..3d5eBtwX1LK6Ob','user','ak_1191f1deff3e425b','2023-11-23 10:23:00',NULL);

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

--
-- Dumping data for table `products`
--


