-- Host: db-master-3.internal    Database: production_db


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

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=40301;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$jTwMGDtfbVtESr5jk866OpDs8ozj/m59Xm7mXroYoXLNwPplSkh5.','user','ak_c2ab948236b119df','2023-02-22 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$EgcodZSxbVErJak77EdALmGtBY3wGWKPPBXhEQzVh5uOUJE6c8mpu','admin','ak_5463de6a9bfc300e','2023-06-06 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$CmUDJNBOIguPd.NMMlyVjEcjZRegAsNPdaps9yOF1KOIgGTRRD8S.','user','ak_f006c754c81d0a23','2023-11-28 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$a/A3YfvOLBIZy5wLsKWjYtJAEyyeZtSXh1znc9LaFggmndTnaJ2oO','user','ak_13d80e91c96cfcce','2023-07-15 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$mmgzKfE/DhWTp/S06qZHcHztbGnQupVTC.qZkmZSJED.em3MqhmFZ','admin','ak_21081152cb535e9a','2023-05-22 10:04:00',NULL);

