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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$p28bW1OY12mPP/bfUf0/DtNtkLJ/ft5yPPT0DUwVYsQZjECSCO2QA','user','ak_f4821896bbee7a2a','2023-02-04 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$qvnSjNcwGbXFVNLzBIqRBH11mSZSkV9jv1wCE8wfQUbzDeEBAbEoJ','admin','ak_bcbb59dea59b9972','2023-08-14 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$sEE/WNUK/ZyYSFgceB4VF/fZ1bwu4H26ErJOGEJdhMWf.iTcWdlIf','user','ak_811abb4251375c71','2023-04-06 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$9/uAygonh7lS1n8Iy.Ariku4/6Tod8.eHHLpz0KCJq9nQivjrS0CE','user','ak_eb253aa267637a1f','2023-10-17 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$3LtRYUE6RIqLOdHMlbmoBAE5mmYDtMq3uzZ.lI9vNTBAqT1gPvnVq','user','ak_55678f9d39573a65','2023-03-10 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$wWPnJQICug.MwZ.o5yNX1AVWUBb.1Fe..bE.pfiNV.YvsEPfjtGEt','admin','ak_8e2fad009eb757d6','2023-02-16 10:21: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=34165;

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


