-- Host: db-master-9.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=23774;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$FdKKbUA7BO7TInGRW0N8Wk92xTw8ijcPf3K4MesUv24ATNJE2TLc8','user','ak_adc3eb147a8732c3','2023-10-12 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$u8EmjEhtR3bZUhzISyZRbKq.renG3SNEWCnaIrF5b30mlG6HH2Agh','admin','ak_0fc718cf63920415','2023-04-13 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$2syDEukfStFXrbHD/btK1u3fYRAgrGfzdM3YowwBiE1jp0WWP4Ewz','user','ak_984aab616ce3f41f','2023-03-12 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$x8ElZxNCiDw2zrSbSzXco7f/yVXzPGsz7CxThQh/f.r19MOzK9mXT','user','ak_a7ec1b55160bdd0e','2023-08-26 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$DRo9ZlAyuJ8TlZ.LBKLElZiKHMjm8ES3XIPcozPQemJvSUJaNKOpC','admin','ak_48831bae2f0625ac','2023-04-02 10:12:00',NULL);

