-- Host: db-master-2.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=38844;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$qwHcWsUTiS0R/Q/vRD7zTrhhOkZzz0rnycIWmIeSe9DVTlR36decy','user','ak_9403ea51599ef502','2023-01-17 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$PSF0kycUuaNfU2cUrXGC7FcAuSaaSmrTUbpWyIPJA8hyHNLH7hmxm','user','ak_e92c78bca9644e57','2023-11-14 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$4j2tWYH2zwa0x8CITk1vhrACWJTe/1Zxlth5nCCzIKghN/AcB/Pmr','user','ak_d0d30b26cac31094','2023-02-21 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$B.OBT18mn4pFr9M6E3eD.jWRi5wO5X/DCI3vht/9FNsqDfisceSZA','user','ak_d262d939d86cb9e1','2023-10-16 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$ND6h2maVs5HGyzsUvmopFea2X9s8J2SeDyc0DBReee001R4Of.mS9','admin','ak_63ad3f358c586291','2023-05-28 10:05: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=5594;

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


