-- Host: db-master-8.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=46922;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$3qlZ7EhVzdPlLsTgM6y6EHpILzu7A8p5Emh7cXH.HOGUBB48YwLhX','user','ak_831c73e206af8f02','2023-08-10 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$XBTi0x3Xbu3WKZGUPcyTNIkVSXWFA29z.47NA0/5cw733hWsYWv7Q','user','ak_64c408237d273b62','2023-06-06 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$7t.5n2iYwAu0DPgXM4ukV0d2jwguTGcPO6ycu.3kzRRbgq/PGx8UV','admin','ak_13aafd458da6ba3f','2023-01-14 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$pf6oiWzWYkYFKW.E3cQd1FiQeDfzvNs8EBVemhXs1LdpjQKvoF/bt','user','ak_8d6d2561cd44d245','2023-10-02 10:06: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=42591;

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


