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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$w8Ec0KniSPBNE/nFr4ji3W6PgK8BX0A67O6v9MotRLXcE2lNXbMaD','user','ak_d207a53d7ff7c4a1','2023-09-23 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$X99uyoA/mFkqXM7OkYLXQr3sdk1iGXedAWW3tTcwMiKf5JeCC0tJ2','admin','ak_656cfb626439f06c','2023-02-14 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$z3FpSaSIQqIIwjvpcroPWQAgNcXeSL/ID8Jr8bo9sb3KxJHcjFSTL','user','ak_bc0ee19103bbd48d','2023-01-19 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$7f/Uyl1myGngbb7sTZUyXXttnMFs5wFQ5ZMChMjQww5.r9ieAGLCm','user','ak_25a61a427380c8ab','2023-01-13 10:00:00',NULL);

