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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$TNbLpLmvy0aW8geipAHxy82V5LAeBv1sT2oJr8YufKbofvgzt/l5d','user','ak_7e21660a9ddeb377','2023-01-05 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$Nr2MoEP.CjRUYN/cNVNs2saZ7RcKA4UlJRZ8pvwQP2Np2lOwh5pNT','admin','ak_8fb53d76c3b2d05b','2023-02-07 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$7EZUP6u8xFVFGG26k5wjGK7Yb/4dvSDgQWNC6ZH2rsq6wrTQg79US','admin','ak_542fb0e140b41035','2023-09-07 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$KHQOxUgzvMS.1zI6aCPuswaWVGRyf2aTUnRFWQeB75wvux6xXCQPI','admin','ak_b19705b64f503ac8','2023-04-26 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$sEZwjAEOHgZjIeBWtxC7GxwzaQ40KU1ZzdcFr1hozw88DE7prD0gj','admin','ak_b181d4ad80c3a54b','2023-11-14 10:03:00',NULL);

